mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
remove babel-polyfill
This commit is contained in:
parent
a9cb000b76
commit
5fe01fdc0a
@ -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",
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user