aboutsummaryrefslogtreecommitdiffstats
path: root/rollup.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js
index 9c48a23..ca9f3df 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -34,6 +34,20 @@ export default [{
filesize(),
]
}, {
+ input: 'src/main.js',
+ output: {
+ file: 'dist/svg.es6.js',
+ name: 'SVG',
+ sourceMap: true,
+ format: 'esm',
+ banner: headerLong
+ },
+ plugins: [
+ babel({
+ include: 'src/**'
+ })
+ ]
+}, {
input: 'src/svg.js',
output: {
file: 'dist/svg.min.js',