mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
remove babel-polyfill
This commit is contained in:
parent
a9cb000b76
commit
5fe01fdc0a
@ -48,7 +48,9 @@
|
|||||||
"autoprefixer": "^6.6.0",
|
"autoprefixer": "^6.6.0",
|
||||||
"babel-core": "^6.21.0",
|
"babel-core": "^6.21.0",
|
||||||
"babel-loader": "^6.2.10",
|
"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-es2015": "^6.18.0",
|
||||||
"babel-preset-stage-2": "^6.18.0",
|
"babel-preset-stage-2": "^6.18.0",
|
||||||
"chokidar": "^1.6.1",
|
"chokidar": "^1.6.1",
|
||||||
|
@ -10,16 +10,14 @@ module.exports = {
|
|||||||
__filename: false
|
__filename: false
|
||||||
},
|
},
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
entry: ['babel-polyfill', r('./lib/nuxt.js')],
|
entry: r('./lib/nuxt.js'),
|
||||||
output: {
|
output: {
|
||||||
path: r('./dist'),
|
path: r('./dist'),
|
||||||
filename: 'nuxt.js',
|
filename: 'nuxt.js',
|
||||||
libraryTarget: 'commonjs2'
|
libraryTarget: 'commonjs2'
|
||||||
},
|
},
|
||||||
externals: [
|
externals: [
|
||||||
nodeExternals({
|
nodeExternals()
|
||||||
whitelist: ['babel-polyfill']
|
|
||||||
})
|
|
||||||
],
|
],
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
@ -32,6 +30,11 @@ module.exports = {
|
|||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
query: {
|
query: {
|
||||||
|
plugins: [
|
||||||
|
'transform-async-to-generator',
|
||||||
|
'array-includes',
|
||||||
|
'transform-runtime'
|
||||||
|
],
|
||||||
presets: [
|
presets: [
|
||||||
['es2015', { modules: false }],
|
['es2015', { modules: false }],
|
||||||
'stage-2'
|
'stage-2'
|
||||||
|
Loading…
Reference in New Issue
Block a user