aboutsummaryrefslogtreecommitdiff
path: root/rollup.config.js
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-09-28 19:47:06 +0300
committerValentin Popov <info@valentineus.link>2017-09-28 19:47:06 +0300
commit1c0e2c906d8c0c503b2e74034275bb3321a216d8 (patch)
tree0702c92665cc45ddb09cbc23817688907f92dd04 /rollup.config.js
parent95f269594837ec1a137d5876e4517a844806a5bf (diff)
downloadiii-client-1c0e2c906d8c0c503b2e74034275bb3321a216d8.tar.xz
iii-client-1c0e2c906d8c0c503b2e74034275bb3321a216d8.zip
Switch to the rollup assembly system
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js
new file mode 100644
index 0000000..e8d61b6
--- /dev/null
+++ b/rollup.config.js
@@ -0,0 +1,22 @@
+import builtins from 'rollup-plugin-node-builtins';
+import globals from 'rollup-plugin-node-globals';
+import babel from 'rollup-plugin-babel';
+
+export default {
+ moduleName: 'client',
+ dest: 'dist/bundle.js',
+ entry: 'src/index.js',
+ format: 'iife',
+ plugins: [
+ builtins(),
+ globals(),
+ babel({
+ babelrc: false,
+ sourceMaps: false,
+ comments: false,
+ presets: [
+ ["es2015", { modules: false }]
+ ],
+ })
+ ]
+}; \ No newline at end of file