Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/webpack/webpack-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Nov 4, 2018
2 parents 8f68555 + 779c689 commit 4b9df8d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions MIGRATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['env']
presets: ['@babel/preset-env']
}
},
{
Expand Down Expand Up @@ -140,7 +140,7 @@ module.exports = {
loader: 'babel-loader'
}],
options: {
presets: ['env']
presets: ['@babel/preset-env']
}
},
{
Expand Down
3 changes: 3 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@ jobs:
- script: |
npm test
displayName: "Run tests"
variables:
nproc: 4
4 changes: 2 additions & 2 deletions packages/generators/init-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ export default class InitGenerator extends Generator {
getBabelPlugin(),
);
this.dependencies.push(
"babel-core",
"babel-loader",
"babel-preset-env",
"@babel/core",
"@babel/preset-env",
);
}
})
Expand Down
2 changes: 1 addition & 1 deletion packages/generators/utils/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function(): IModule {
],
presets: [
[
"'env'",
"'@babel/preset-env'",
{
"'modules'": false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ exports[`loaders transforms correctly using "loaders-7" data 1`] = `
loader: 'babel-loader',
options: {
presets: ['env']
presets: ['@babel/preset-env']
}
}]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
exclude: /(node_modules)/,
loader: 'babel-loader',
query: {
presets: ['env']
presets: ['@babel/preset-env']
}
}
]
Expand Down

0 comments on commit 4b9df8d

Please sign in to comment.