Skip to content

Commit

Permalink
for #950, remove @babel/core from devDependencies (so it's only in de…
Browse files Browse the repository at this point in the history
…pendencies) and change babel-loader config to use .babelrc
  • Loading branch information
catarak committed May 21, 2019
1 parent c15b401 commit a92f28a
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 50 deletions.
43 changes: 25 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"url": "git+https://github.com/catarak/p5.js-web-editor.git"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
Expand Down
9 changes: 3 additions & 6 deletions webpack/config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,9 @@ module.exports = [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: [
'@babel/preset-react',
'@babel/preset-env'
]
},
options: {
babelrc: true
}
}
],
},
Expand Down
27 changes: 9 additions & 18 deletions webpack/config.examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ module.exports = [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: [
'@babel/preset-react',
'@babel/preset-env'
]
},
options: {
babelrc: true
}
}
],
},
Expand Down Expand Up @@ -63,12 +60,9 @@ module.exports = [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: [
'@babel/preset-react',
'@babel/preset-env'
]
},
options: {
babelrc: true
}
}
],
},
Expand Down Expand Up @@ -99,12 +93,9 @@ module.exports = [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: [
'@babel/preset-react',
'@babel/preset-env'
]
},
options: {
babelrc: true
}
}
],
},
Expand Down
5 changes: 4 additions & 1 deletion webpack/config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ module.exports = [{
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader'
loader: 'babel-loader',
options: {
babelrc: true
}
}
]
},
Expand Down
9 changes: 3 additions & 6 deletions webpack/config.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ module.exports = {
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: [
'@babel/preset-react',
'@babel/preset-env'
]
},
options: {
babelrc: true
}
}, {
test: /\.json$/,
loader: 'json-loader',
Expand Down

0 comments on commit a92f28a

Please sign in to comment.