remove babel-polyfill

This commit is contained in:
Sébastien Chopin 2016-12-27 14:55:33 +01:00
parent a9cb000b76
commit 5fe01fdc0a
2 changed files with 10 additions and 5 deletions

View File

@ -48,7 +48,9 @@
"autoprefixer": "^6.6.0",
"babel-core": "^6.21.0",
"babel-loader": "^6.2.10",
"babel-polyfill": "^6.20.0",
"babel-plugin-array-includes": "^2.0.3",
"babel-plugin-transform-async-to-generator": "^6.16.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-2": "^6.18.0",
"chokidar": "^1.6.1",

View File

@ -10,16 +10,14 @@ module.exports = {
__filename: false
},
devtool: 'source-map',
entry: ['babel-polyfill', r('./lib/nuxt.js')],
entry: r('./lib/nuxt.js'),
output: {
path: r('./dist'),
filename: 'nuxt.js',
libraryTarget: 'commonjs2'
},
externals: [
nodeExternals({
whitelist: ['babel-polyfill']
})
nodeExternals()
],
module: {
rules: [
@ -32,6 +30,11 @@ module.exports = {
loader: 'babel-loader',
exclude: /node_modules/,
query: {
plugins: [
'transform-async-to-generator',
'array-includes',
'transform-runtime'
],
presets: [
['es2015', { modules: false }],
'stage-2'