aboutsummaryrefslogtreecommitdiffstats
path: root/.config
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
parentda6d34923608c646af0a692b235c329443fc1486 (diff)
downloadsvg.js-d951ebe070232d8e9d52c4c87d579639da472c0c.tar.gz
svg.js-d951ebe070232d8e9d52c4c87d579639da472c0c.zip
add rollup config to build polyfills
Diffstat (limited to '.config')
-rw-r--r--.config/polyfills.js27
-rw-r--r--.config/rollup.polyfills.js20
2 files changed, 29 insertions, 18 deletions
diff --git a/.config/polyfills.js b/.config/polyfills.js
index d73adb8..fc7df3d 100644
--- a/.config/polyfills.js
+++ b/.config/polyfills.js
@@ -1,18 +1,9 @@
-import 'core-js/modules/es6.date.to-string';
-import 'core-js/modules/es6.function.name';
-import 'core-js/modules/es6.object.keys';
-import 'core-js/modules/es7.symbol.async-iterator';
-import 'core-js/modules/es6.symbol';
-import 'core-js/modules/es6.string.iterator';
-import 'core-js/modules/es6.set';
-import 'core-js/modules/es6.regexp.match';
-import 'core-js/modules/es7.array.includes';
-import 'core-js/modules/es6.string.includes';
-import 'core-js/modules/es6.array.iterator';
-import 'core-js/modules/es7.object.entries';
-import 'core-js/modules/es6.object.assign';
-import 'core-js/modules/es6.regexp.to-string';
-import 'core-js/modules/es6.regexp.replace';
-import 'core-js/modules/es6.regexp.split';
-import 'core-js/modules/web.dom.iterable';
-import 'core-js/modules/es6.array.find';
+import 'core-js/modules/es6.function.name'
+import 'core-js/modules/es6.object.keys'
+import 'core-js/modules/es6.symbol'
+import 'core-js/modules/es6.set'
+import 'core-js/modules/es7.array.includes'
+import 'core-js/modules/es6.string.includes'
+import 'core-js/modules/es6.array.iterator'
+import 'core-js/modules/es7.object.entries'
+import 'core-js/modules/es6.object.assign'
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()
+ ]
+ }
+]