Skip to content

Update rollup from 0.68.2 to 1.27.0 #249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 18, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update babel configurations
  • Loading branch information
pirropirro committed Nov 13, 2019
commit 07c5f39bdadd63ca74dfec581e1d4e99f5ef6c00
26 changes: 17 additions & 9 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,27 @@
"env": {
"commonjs": {
"presets": [
["env", {
"useBuiltIns": false
}]
[
"@babel/env",
{
"useBuiltIns": false
}
]
]
},
"es": {
"presets": [
["env", {
"useBuiltIns": false,
"modules": false
}]
[
"@babel/env",
{
"useBuiltIns": false,
"modules": false
}
]
]
}
},
"plugins": ["transform-object-rest-spread"]
}
"plugins": [
"@babel/proposal-object-rest-spread"
]
}
7 changes: 5 additions & 2 deletions demo/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"presets": ["env", "react"]
}
"presets": [
"@babel/env",
"@babel/react"
]
}
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ module.exports = {
test: /\.(js|jsx)$/,
exclude: /(node_modules)/,
use: {
loader: 'babel-loader'
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
]
Expand Down