Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
Needs es2015 until "export const { }" bug fixed
Browse files Browse the repository at this point in the history
Fix commonjs exports with destructuring. by yavorsky · Pull Request #5469 · babel/babel
babel/babel#5469
  • Loading branch information
mpyw committed Jun 21, 2017
1 parent 122b909 commit cbfb270
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Empty file added example/.npm
Empty file.
1 change: 1 addition & 0 deletions example/package.json
Expand Up @@ -15,6 +15,7 @@
"babel-loader": "^7.0.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-polyfill": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"webpack": "^2.6.1",
"webpack-dev-server": "^2.4.5"
Expand Down
2 changes: 1 addition & 1 deletion example/webpack.config.js
Expand Up @@ -15,7 +15,7 @@ module.exports = {
use: {
loader: 'babel-loader',
options: {
presets: ['react'],
presets: ['react', 'es2015'],
plugins: ['transform-object-rest-spread'],
},
},
Expand Down

0 comments on commit cbfb270

Please sign in to comment.