mirror of
https://github.com/svgdotjs/svg.js.git
synced 2024-08-30 18:00:08 +02:00
remove other builds because of bloat for now until fixed
This commit is contained in:
parent
a0b13ebcac
commit
0cae4172fa
6682
dist/svg.es6.js
vendored
6682
dist/svg.es6.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/svg.min.js
vendored
1
dist/svg.min.js
vendored
File diff suppressed because one or more lines are too long
200
package-lock.json
generated
200
package-lock.json
generated
@ -696,6 +696,26 @@
|
||||
"regenerator-transform": "^0.13.3"
|
||||
}
|
||||
},
|
||||
"@babel/plugin-transform-runtime": {
|
||||
"version": "7.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.1.0.tgz",
|
||||
"integrity": "sha512-WFLMgzu5DLQEah0lKTJzYb14vd6UiES7PTnXcvrPZ1VrwFeJ+mTbvr65fFAsXYMt2bIoOoC0jk76zY1S7HZjUg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-module-imports": "^7.0.0",
|
||||
"@babel/helper-plugin-utils": "^7.0.0",
|
||||
"resolve": "^1.8.1",
|
||||
"semver": "^5.5.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"semver": {
|
||||
"version": "5.6.0",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz",
|
||||
"integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"@babel/plugin-transform-shorthand-properties": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0.tgz",
|
||||
@ -811,6 +831,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"@babel/runtime": {
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.1.2.tgz",
|
||||
"integrity": "sha512-Y3SCjmhSupzFB6wcv1KmmFucH6gDVnI30WjOcicV10ju0cZjak3Jcs67YLIXBrmZYw1xCrVeJPbycFwrqNyxpg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"regenerator-runtime": "^0.12.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"regenerator-runtime": {
|
||||
"version": "0.12.1",
|
||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz",
|
||||
"integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"@babel/template": {
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.1.2.tgz",
|
||||
@ -1020,12 +1057,6 @@
|
||||
"integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
|
||||
"dev": true
|
||||
},
|
||||
"ansi-styles": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
|
||||
"integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
|
||||
"dev": true
|
||||
},
|
||||
"anymatch": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz",
|
||||
@ -1265,6 +1296,25 @@
|
||||
"eslint-visitor-keys": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"babel-polyfill": {
|
||||
"version": "6.26.0",
|
||||
"resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
|
||||
"integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"babel-runtime": "^6.26.0",
|
||||
"core-js": "^2.5.0",
|
||||
"regenerator-runtime": "^0.10.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"regenerator-runtime": {
|
||||
"version": "0.10.5",
|
||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
|
||||
"integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"babel-runtime": {
|
||||
"version": "6.26.0",
|
||||
"resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
|
||||
@ -1772,19 +1822,6 @@
|
||||
"integrity": "sha512-enC3zKfUCJxxwvUIsBkbHd54CtJw1KtIWvrK0JZxWD/fEN2knHaai45lndJ4xXAkyRAPyk60J3yagkKDWhfeMA==",
|
||||
"dev": true
|
||||
},
|
||||
"chalk": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
|
||||
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ansi-styles": "^2.2.1",
|
||||
"escape-string-regexp": "^1.0.2",
|
||||
"has-ansi": "^2.0.0",
|
||||
"strip-ansi": "^3.0.0",
|
||||
"supports-color": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"chardet": {
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
|
||||
@ -4134,6 +4171,12 @@
|
||||
"integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==",
|
||||
"dev": true
|
||||
},
|
||||
"graceful-readlink": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz",
|
||||
"integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=",
|
||||
"dev": true
|
||||
},
|
||||
"growl": {
|
||||
"version": "1.10.5",
|
||||
"resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz",
|
||||
@ -4190,15 +4233,6 @@
|
||||
"function-bind": "^1.1.1"
|
||||
}
|
||||
},
|
||||
"has-ansi": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
|
||||
"integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ansi-regex": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"has-binary2": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.3.tgz",
|
||||
@ -4633,6 +4667,12 @@
|
||||
"number-is-nan": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"is-module": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
|
||||
"integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=",
|
||||
"dev": true
|
||||
},
|
||||
"is-number": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
|
||||
@ -6642,6 +6682,29 @@
|
||||
"rollup-pluginutils": "^2.3.0"
|
||||
}
|
||||
},
|
||||
"rollup-plugin-commonjs": {
|
||||
"version": "9.2.0",
|
||||
"resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.2.0.tgz",
|
||||
"integrity": "sha512-0RM5U4Vd6iHjL6rLvr3lKBwnPsaVml+qxOGaaNUWN1lSq6S33KhITOfHmvxV3z2vy9Mk4t0g4rNlVaJJsNQPWA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"estree-walker": "^0.5.2",
|
||||
"magic-string": "^0.25.1",
|
||||
"resolve": "^1.8.1",
|
||||
"rollup-pluginutils": "^2.3.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"magic-string": {
|
||||
"version": "0.25.1",
|
||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.1.tgz",
|
||||
"integrity": "sha512-sCuTz6pYom8Rlt4ISPFn6wuFodbKMIHUMv4Qko9P17dpxb7s52KJTmRuZZqHdGmLCK9AOcDare039nRIcfdkEg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"sourcemap-codec": "^1.4.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rollup-plugin-filesize": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/rollup-plugin-filesize/-/rollup-plugin-filesize-5.0.1.tgz",
|
||||
@ -6690,31 +6753,22 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"rollup-plugin-progress": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/rollup-plugin-progress/-/rollup-plugin-progress-0.4.0.tgz",
|
||||
"integrity": "sha1-7AtO4zlkNGRUEjJykmKLh7O0Tx4=",
|
||||
"rollup-plugin-node-resolve": {
|
||||
"version": "3.4.0",
|
||||
"resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.4.0.tgz",
|
||||
"integrity": "sha512-PJcd85dxfSBWih84ozRtBkB731OjXk0KnzN0oGp7WOWcarAFkVa71cV5hTJg2qpVsV2U8EUwrzHP3tvy9vS3qg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chalk": "^1.1.3",
|
||||
"rollup-pluginutils": "^1.5.1"
|
||||
"builtin-modules": "^2.0.0",
|
||||
"is-module": "^1.0.0",
|
||||
"resolve": "^1.1.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"estree-walker": {
|
||||
"version": "0.2.1",
|
||||
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.2.1.tgz",
|
||||
"integrity": "sha1-va/oCVOD2EFNXcLs9MkXO225QS4=",
|
||||
"builtin-modules": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-2.0.0.tgz",
|
||||
"integrity": "sha512-3U5kUA5VPsRUA3nofm/BXX7GVHKfxz0hOBAPxXrIvHzlDRkQVqEn6yi8QJegxl4LzOHLdvb7XF5dVawa/VVYBg==",
|
||||
"dev": true
|
||||
},
|
||||
"rollup-pluginutils": {
|
||||
"version": "1.5.2",
|
||||
"resolved": "http://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz",
|
||||
"integrity": "sha1-HhVud4+UtyVb+hs9AXi+j1xVJAg=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"estree-walker": "^0.2.1",
|
||||
"minimatch": "^3.0.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -6754,6 +6808,37 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"rollup-plugin-uglify-es": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/rollup-plugin-uglify-es/-/rollup-plugin-uglify-es-0.0.1.tgz",
|
||||
"integrity": "sha1-5FZE8raFpZq9uTY0ByB6A6e1qbc=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"uglify-es": "3.0.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"commander": {
|
||||
"version": "2.9.0",
|
||||
"resolved": "http://registry.npmjs.org/commander/-/commander-2.9.0.tgz",
|
||||
"integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"graceful-readlink": ">= 1.0.0"
|
||||
}
|
||||
},
|
||||
"uglify-es": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.0.3.tgz",
|
||||
"integrity": "sha1-Y8yEqpRos0lzpIh3h8ZMAaiodXY=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"commander": "~2.9.0",
|
||||
"source-map": "~0.5.1",
|
||||
"uglify-to-browserify": "~1.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rollup-pluginutils": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.3.3.tgz",
|
||||
@ -7250,6 +7335,12 @@
|
||||
"integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
|
||||
"dev": true
|
||||
},
|
||||
"sourcemap-codec": {
|
||||
"version": "1.4.3",
|
||||
"resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.3.tgz",
|
||||
"integrity": "sha512-vFrY/x/NdsD7Yc8mpTJXuao9S8lq08Z/kOITHz6b7YbfI9xL8Spe5EvSQUHOI7SbpY8bRPr0U3kKSsPuqEGSfA==",
|
||||
"dev": true
|
||||
},
|
||||
"spdx-correct": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz",
|
||||
@ -7555,12 +7646,6 @@
|
||||
"integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
|
||||
"dev": true
|
||||
},
|
||||
"supports-color": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
|
||||
"integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
|
||||
"dev": true
|
||||
},
|
||||
"svgdom": {
|
||||
"version": "0.0.15",
|
||||
"resolved": "https://registry.npmjs.org/svgdom/-/svgdom-0.0.15.tgz",
|
||||
@ -7940,6 +8025,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"uglify-to-browserify": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz",
|
||||
"integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"ultron": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz",
|
||||
|
@ -66,8 +66,11 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.1.2",
|
||||
"@babel/plugin-external-helpers": "^7.0.0",
|
||||
"@babel/plugin-transform-runtime": "^7.1.0",
|
||||
"@babel/preset-env": "^7.1.0",
|
||||
"@babel/runtime": "^7.1.2",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"coveralls": "^3.0.2",
|
||||
"eslint": "^5.8.0",
|
||||
"eslint-config-standard": "^12.0.0",
|
||||
@ -84,9 +87,13 @@
|
||||
"karma-jasmine": "^1.1.2",
|
||||
"rollup": "^0.67.0",
|
||||
"rollup-plugin-babel": "^4.0.3",
|
||||
"rollup-plugin-commonjs": "^9.2.0",
|
||||
"rollup-plugin-filesize": "^5.0.1",
|
||||
"rollup-plugin-node-resolve": "^3.4.0",
|
||||
"rollup-plugin-uglify": "^6.0.0",
|
||||
"rollup-plugin-uglify-es": "0.0.1",
|
||||
"svgdom": "latest"
|
||||
},
|
||||
"dependencies": {}
|
||||
"dependencies": {},
|
||||
"optionalDependencies": {}
|
||||
}
|
||||
|
181
rollup.config.js
181
rollup.config.js
@ -1,6 +1,9 @@
|
||||
import babel from 'rollup-plugin-babel'
|
||||
import { uglify } from "rollup-plugin-uglify"
|
||||
import uglifyEs6 from "rollup-plugin-uglify-es"
|
||||
import filesize from 'rollup-plugin-filesize'
|
||||
import resolve from 'rollup-plugin-node-resolve'
|
||||
import commonjs from 'rollup-plugin-commonjs'
|
||||
const pkg = require('./package.json')
|
||||
|
||||
const buildDate = Date()
|
||||
@ -18,48 +21,136 @@ const headerLong = `/*!
|
||||
|
||||
var headerShort = `/*! ${pkg.name} v${pkg.version} ${pkg.license}*/;`
|
||||
|
||||
export default [{
|
||||
input: 'src/svg.js',
|
||||
output: {
|
||||
file: 'dist/svg.js',
|
||||
name: 'SVG',
|
||||
sourceMap: true,
|
||||
format: 'iife',
|
||||
banner: headerLong
|
||||
},
|
||||
plugins: [
|
||||
babel({
|
||||
include: 'src/**'
|
||||
}),
|
||||
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',
|
||||
name: 'SVG',
|
||||
sourceMap: true,
|
||||
format: 'iife',
|
||||
banner: headerShort
|
||||
},
|
||||
plugins: [
|
||||
babel({
|
||||
include: 'src/**'
|
||||
}),
|
||||
uglify(),
|
||||
]
|
||||
}]
|
||||
// const baseConfig = {
|
||||
// input: 'src/svg.js',
|
||||
// output: {
|
||||
// // file: 'dist/svg.js',
|
||||
// name: 'SVG',
|
||||
// sourceMap: true,
|
||||
// // format: 'iife',
|
||||
// // banner: headerLong
|
||||
// },
|
||||
// plugins: [
|
||||
// // babel({
|
||||
// // include: 'src/**'
|
||||
// // }),
|
||||
// // filesize(),
|
||||
// ]
|
||||
// }
|
||||
//
|
||||
// const createConfig = (file = 'dist/svg.js', format = 'iife', minify = false) => {
|
||||
// const config = JSON.parse(JSON.stringify(baseConfig))
|
||||
// config.output.file = file
|
||||
// config.output.format = format
|
||||
// config.output.banner = minify ? headerShort : headerLong
|
||||
//
|
||||
// config.plugins.push(resolve({browser: true}))
|
||||
// config.plugins.push(commonjs())
|
||||
//
|
||||
// if (format == 'esm') {
|
||||
// config.plugins.push(
|
||||
// babel({
|
||||
// runtimeHelpers: true,
|
||||
// include: 'src/**',
|
||||
// babelrc: false,
|
||||
// presets: [["@babel/preset-env", {
|
||||
// "modules": false,
|
||||
// targets: {
|
||||
// chrome: 49,
|
||||
// edge: 14,
|
||||
// firefox: 45,
|
||||
// safari: 10
|
||||
// },
|
||||
// useBuiltIns: "usage"
|
||||
// }]],
|
||||
// "plugins": [
|
||||
// [
|
||||
// "@babel/plugin-transform-runtime",
|
||||
// {
|
||||
// "corejs": 2,
|
||||
// "helpers": true,
|
||||
// "regenerator": true,
|
||||
// "useESModules": true
|
||||
// }
|
||||
// ]
|
||||
// ]
|
||||
// })
|
||||
// )
|
||||
// } else {
|
||||
// config.plugins.push(
|
||||
// babel({
|
||||
// include: 'src/**',
|
||||
// runtimeHelpers: true,
|
||||
// babelrc: false,
|
||||
// presets: [
|
||||
// ["@babel/preset-env", {
|
||||
// modules: false,
|
||||
// targets: {
|
||||
// ie: "9"
|
||||
// },
|
||||
// useBuiltIns: "entry"
|
||||
// }]
|
||||
// ],
|
||||
// plugins: [
|
||||
// [
|
||||
// "@babel/plugin-transform-runtime",
|
||||
// {
|
||||
// corejs: false,
|
||||
// helpers: true,
|
||||
// regenerator: true,
|
||||
// useESModules: true
|
||||
// }
|
||||
// ]
|
||||
// ]
|
||||
// })
|
||||
// )
|
||||
// }
|
||||
//
|
||||
// if (minify) {
|
||||
// config.plugins.push(format == 'esm' ? uglifyEs6() : uglify())
|
||||
// } else {
|
||||
// config.plugins.push(filesize())
|
||||
// }
|
||||
//
|
||||
// return config
|
||||
// }
|
||||
|
||||
export default [
|
||||
//createConfig('dist/svg.js', 'iife', false),
|
||||
// createConfig('dist/svg.min.js', 'iife', true),
|
||||
// createConfig('dist/svg.es6.js', 'esm', false),
|
||||
// createConfig('dist/svg.es6.min.js', 'esm', true)
|
||||
{
|
||||
input: 'src/svg.js',
|
||||
output: {
|
||||
file: 'dist/svg.js',
|
||||
name: 'SVG',
|
||||
sourceMap: true,
|
||||
format: 'iife',
|
||||
banner: headerLong
|
||||
},
|
||||
plugins: [
|
||||
// resolve({browser: true}),
|
||||
// commonjs(),
|
||||
babel({
|
||||
include: 'src/**',
|
||||
runtimeHelpers: true,
|
||||
babelrc: false,
|
||||
presets: [["@babel/preset-env", {
|
||||
modules: false,
|
||||
// targets: {
|
||||
// firefox: "63"
|
||||
// },
|
||||
// useBuiltIns: "usage"
|
||||
}]],
|
||||
// plugins: [["@babel/plugin-transform-runtime", {
|
||||
// corejs: false,
|
||||
// helpers: true,
|
||||
// regenerator: true,
|
||||
// useESModules: true
|
||||
// }]]
|
||||
}),
|
||||
filesize()
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user