chore: update babel dependencies
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -5,4 +5,4 @@ emitter.ADD = 'ADD'
|
||||
emitter.SHOW = 'SHOW'
|
||||
emitter.SCALE = 'SCALE'
|
||||
|
||||
module.exports = emitter
|
||||
export default emitter
|
||||
|
||||
Reference in New Issue
Block a user