ccc-tnt-psd2ui/psd2ui-tools/rollup.config.js

29 lines
754 B
JavaScript
Raw Permalink Normal View History

2023-07-28 06:23:31 +00:00
let path = require("path");
const commonjs = require('@rollup/plugin-commonjs')
const typescript = require('rollup-plugin-typescript2')
let resolve = require('@rollup/plugin-node-resolve').default;
let json = require("@rollup/plugin-json").default;
let terser = require("rollup-plugin-terser").terser;
const override = { compilerOptions: { module: 'ESNext' } }
module.exports = {
input: "./src/export.ts",
output: {
file: path.resolve(__dirname, "./dist/index.js"),
sourcemap: false,
format: "umd",
},
plugins: [
typescript({ tsconfig: './tsconfig.json', tsconfigOverride: override }),
json(),
// resolve(),
commonjs(),
// terser()
2023-07-28 06:23:31 +00:00
]
}