mirror of
https://gitee.com/onvia/ccc-tnt-psd2ui
synced 2024-12-25 03:08:26 +00:00
29 lines
754 B
JavaScript
29 lines
754 B
JavaScript
|
|
|
|
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()
|
|
]
|
|
}
|