chore: update babel dependencies
This commit is contained in:
@@ -37,11 +37,12 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://eruda.liriliri.io/",
|
"homepage": "https://eruda.liriliri.io/",
|
||||||
"devDependencies": {
|
"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",
|
"autoprefixer": "^7.2.2",
|
||||||
"babel-core": "^6.26.0",
|
"babel-loader": "^8.0.6",
|
||||||
"babel-loader": "^7.1.2",
|
|
||||||
"babel-plugin-transform-runtime": "^6.23.0",
|
|
||||||
"babel-preset-env": "^1.6.1",
|
|
||||||
"copy": "^0.3.1",
|
"copy": "^0.3.1",
|
||||||
"css-loader": "^0.28.7",
|
"css-loader": "^0.28.7",
|
||||||
"draggabilly": "^2.1.1",
|
"draggabilly": "^2.1.1",
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ module.exports = {
|
|||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, '../'),
|
path: path.resolve(__dirname, '../'),
|
||||||
publicPath: '/assets/',
|
publicPath: '/assets/',
|
||||||
library: ['eruda'],
|
|
||||||
libraryTarget: 'umd'
|
libraryTarget: 'umd'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
@@ -49,8 +48,8 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
presets: ['env'],
|
presets: ['@babel/preset-env'],
|
||||||
plugins: ['transform-runtime']
|
plugins: ['@babel/plugin-transform-runtime']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'eslint-loader'
|
'eslint-loader'
|
||||||
|
|||||||
@@ -25,10 +25,11 @@ import {
|
|||||||
toArr,
|
toArr,
|
||||||
upperFirst,
|
upperFirst,
|
||||||
nextTick,
|
nextTick,
|
||||||
last
|
last,
|
||||||
|
isBrowser
|
||||||
} from './lib/util'
|
} from './lib/util'
|
||||||
|
|
||||||
module.exports = {
|
const eruda = {
|
||||||
init({ container, tool, autoScale = true, useShadowDom = true } = {}) {
|
init({ container, tool, autoScale = true, useShadowDom = true } = {}) {
|
||||||
if (this._isInit) return
|
if (this._isInit) return
|
||||||
|
|
||||||
@@ -253,4 +254,8 @@ module.exports = {
|
|||||||
|
|
||||||
extraUtil(util)
|
extraUtil(util)
|
||||||
|
|
||||||
|
if (isBrowser) global.eruda = eruda
|
||||||
|
|
||||||
|
export default eruda
|
||||||
|
|
||||||
//# sourceMappingURL=index.js.map
|
//# sourceMappingURL=index.js.map
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ emitter.ADD = 'ADD'
|
|||||||
emitter.SHOW = 'SHOW'
|
emitter.SHOW = 'SHOW'
|
||||||
emitter.SCALE = 'SCALE'
|
emitter.SCALE = 'SCALE'
|
||||||
|
|
||||||
module.exports = emitter
|
export default emitter
|
||||||
|
|||||||
Reference in New Issue
Block a user