Skip to content

Commit

Permalink
improve babel config for Edge/IE (#3002)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhuang01 committed Apr 18, 2019
1 parent 0434921 commit 1150bc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-decorators": "^7.1.2",
"@babel/preset-react": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"brfs-babel": "^1.0.0",
"css-loader": "^0.26.1",
"eslint": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion website/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ALIASES = require('ocular-dev-tools/config/ocular.config')({
// Seems to be a Babel bug
// https://github.com/babel/babel-loader/issues/149#issuecomment-191991686
const BABEL_CONFIG = {
presets: ['@babel/preset-react'],
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
['@babel/plugin-proposal-decorators', {legacy: true}],
['@babel/plugin-proposal-class-properties', {loose: true}]
Expand Down

0 comments on commit 1150bc8

Please sign in to comment.