1
0
mirror of synced 2025-12-07 14:08:06 +08:00

chore: update babel dependencies

This commit is contained in:
redhoodsu
2019-11-03 23:54:42 +08:00
parent 28c43ed109
commit ea27f5b051
4 changed files with 15 additions and 10 deletions

View File

@@ -37,11 +37,12 @@
},
"homepage": "https://eruda.liriliri.io/",
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@babel/runtime": "^7.6.3",
"autoprefixer": "^7.2.2",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-loader": "^8.0.6",
"copy": "^0.3.1",
"css-loader": "^0.28.7",
"draggabilly": "^2.1.1",

View File

@@ -26,7 +26,6 @@ module.exports = {
output: {
path: path.resolve(__dirname, '../'),
publicPath: '/assets/',
library: ['eruda'],
libraryTarget: 'umd'
},
module: {
@@ -49,8 +48,8 @@ module.exports = {
{
loader: 'babel-loader',
options: {
presets: ['env'],
plugins: ['transform-runtime']
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-runtime']
}
},
'eslint-loader'

View File

@@ -25,10 +25,11 @@ import {
toArr,
upperFirst,
nextTick,
last
last,
isBrowser
} from './lib/util'
module.exports = {
const eruda = {
init({ container, tool, autoScale = true, useShadowDom = true } = {}) {
if (this._isInit) return
@@ -253,4 +254,8 @@ module.exports = {
extraUtil(util)
if (isBrowser) global.eruda = eruda
export default eruda
//# sourceMappingURL=index.js.map

View File

@@ -5,4 +5,4 @@ emitter.ADD = 'ADD'
emitter.SHOW = 'SHOW'
emitter.SCALE = 'SCALE'
module.exports = emitter
export default emitter