aboutsummaryrefslogtreecommitdiffstats
path: root/.config/rollup.polyfills.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-13 23:01:42 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-13 23:01:42 +0100
commitd951ebe070232d8e9d52c4c87d579639da472c0c (patch)
treea23d9c3f87abf579815113abc7ad3e030cbb39ca /.config/rollup.polyfills.js
parentda6d34923608c646af0a692b235c329443fc1486 (diff)
downloadsvg.js-d951ebe070232d8e9d52c4c87d579639da472c0c.tar.gz
svg.js-d951ebe070232d8e9d52c4c87d579639da472c0c.zip
add rollup config to build polyfills
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()
+ ]
+ }
+]