aboutsummaryrefslogtreecommitdiff
path: root/rollup.config.js
diff options
context:
space:
mode:
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