aboutsummaryrefslogtreecommitdiff
path: root/rollup.config.js
diff options
context:
space:
mode:
authorJeremy Chone <jeremy.chone@gmail.com>2022-06-20 01:02:15 -0700
committerJeremy Chone <jeremy.chone@gmail.com>2022-06-20 01:02:15 -0700
commit051748771895bb040188221c3e4136878dbedb8a (patch)
tree9492d6020c9294b12b3fd912520746e0df847406 /rollup.config.js
downloadFlightCore-051748771895bb040188221c3e4136878dbedb8a.tar.gz
FlightCore-051748771895bb040188221c3e4136878dbedb8a.zip
. initial
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js28
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 } })
+ ]
+ }
+]
+