aboutsummaryrefslogtreecommitdiffstats
path: root/.config/rollup.polyfills.js
diff options
context:
space:
mode:
Diffstat (limited to '.config/rollup.polyfills.js')
-rw-r--r--.config/rollup.polyfills.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/rollup.polyfills.js b/.config/rollup.polyfills.js
new file mode 100644
index 0000000..94f0654
--- /dev/null
+++ b/.config/rollup.polyfills.js
@@ -0,0 +1,20 @@
+import { uglify } from "rollup-plugin-uglify"
+import resolve from 'rollup-plugin-node-resolve'
+import commonjs from 'rollup-plugin-commonjs'
+
+export default [
+ {
+ input: './.config/polyfills.js',
+ output: {
+ file: 'dist/polyfills.js',
+ name: 'polyfills',
+ sourceMap: 'external',
+ format: 'iife'
+ },
+ plugins: [
+ resolve({browser: true}),
+ commonjs(),
+ uglify()
+ ]
+ }
+]