diff --git a/.babelrc b/.babelrc index 1e23929..c13c5f6 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,3 @@ { - "presets": ["es2015"], - "comments": false + "presets": ["es2015"] } diff --git a/build/webpack.base.js b/build/webpack.base.js index c76b473..bc4b9b6 100644 --- a/build/webpack.base.js +++ b/build/webpack.base.js @@ -53,13 +53,9 @@ module.exports = { [ { test: /\.(jsx?|babel|es6)$/, - include: '/Users/hua/Documents/其他项目/ddv-cms', + include: dirRoot, exclude: /node_modules|bower_components/, - loader: 'buble-loader', - query: { - objectAssign: 'Object.assign', - jsx: 'h' - } + loader: 'babel-loader' }, { test: /\.json$/, diff --git a/package.json b/package.json index f6f9e14..f549ef6 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,10 @@ "mint-ui": "^2.1" }, "devDependencies": { + "babel-core": "^6.24.1", "babel-eslint": "^7.2.1", - "buble-loader": "^0.4.1", + "babel-loader": "^7.0.0", + "babel-preset-es2015": "^6.24.1", "css-entry-webpack-plugin": "^1.0.0-beta.4", "css-loader": "^0.24.0", "eslint": "^3.19.0",