diff options
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 00000000..3cdaa211 --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,28 @@ +import rollup_nre from '@rollup/plugin-node-resolve'; +import rollup_tsc from '@rollup/plugin-typescript'; +// import { terser } from 'rollup-plugin-terser'; + +export default [ + { + input: './src-ui/src/main.ts', + output: { + file: './dist/js/app-bundle.js', + format: 'iife', + name: 'bundle', + sourcemap: true + }, + plugins: [ + // rollup_cjs(), + rollup_nre(), + rollup_tsc({ + tsconfig: './src-ui/tsconfig.json', + compilerOptions: { + declaration: false, + declarationDir: null + } + }), + // terser({ compress: true, format: { comments: false } }) + ] + } +] + |