Skip to content

Commit

Permalink
Move to latest webpack/babel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
botre committed May 16, 2019
1 parent f1680fc commit ca6737e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
},
"dependencies": {},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-3": "^6.24.1",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.1"
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"babel-loader": "^8.0.5",
"webpack": "^4.29.0",
"webpack-cli": "^3.2.1"
}
}
15 changes: 7 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const webpack = require('webpack');
const path = require('path');
const path = require("path");

module.exports = {
entry: path.resolve(__dirname + '/src/vue-connection-listener.js'),
entry: path.resolve(__dirname + "/src/vue-connection-listener.js"),
output: {
path: path.resolve(__dirname + '/dist/'),
filename: 'vue-connection-listener.js',
library: 'vue-connection-listener',
libraryTarget: 'umd',
path: path.resolve(__dirname + "/dist/"),
filename: "vue-connection-listener.js",
library: "vue-connection-listener",
libraryTarget: "umd",
umdNamedDefine: true
},
module: {
Expand All @@ -16,7 +15,7 @@ module.exports = {
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
loader: "babel-loader"
}
}
]
Expand Down

0 comments on commit ca6737e

Please sign in to comment.