Commit 2d92aa7b authored by Evan You's avatar Evan You

use buble instead of babel

parent e5370b5b
......@@ -10,21 +10,24 @@ module.exports = {
filename: 'client-bundle.js'
},
module: {
noParse: /(lru-cache|es6-promise)\.js$/,
noParse: /es6-promise\.js$/, // avoid webpack shimming process
rules: [
{
test: /\.vue$/,
loader: 'vue',
loader: 'vue-loader',
options: vueConfig
},
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/
loader: 'buble-loader',
exclude: /node_modules/,
options: {
objectAssign: 'Object.assign'
}
},
{
test: /\.(png|jpg|gif|svg)$/,
loader: 'url',
loader: 'url-loader',
options: {
limit: 10000,
name: '[name].[ext]?[hash]'
......
......@@ -31,12 +31,10 @@
},
"devDependencies": {
"autoprefixer": "^6.4.0",
"babel-core": "^6.0.0",
"babel-loader": "^6.0.0",
"babel-preset-es2015": "^6.13.2",
"babel-preset-stage-2": "^6.11.0",
"cross-env": "^2.0.0",
"css-loader": "^0.25.0",
"buble": "^0.14.2",
"buble-loader": "^0.3.2",
"extract-text-webpack-plugin": "^2.0.0-beta.3",
"file-loader": "^0.9.0",
"stylus": "^0.54.5",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment