Skip to content

Commit

Permalink
fix: add polyfills for ie11 issues (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbadan committed Jun 19, 2020
1 parent 302413c commit 7c5bae2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .size-limit
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
name: "Fundamental-React Size",
webpack: true,
path: "lib/index.js",
limit: "210 KB"
limit: "230 KB"
}
]
6 changes: 2 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ const defaultPresets = [

const defaultPlugins = [
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-object-assign'
['@babel/plugin-transform-runtime', { corejs: 3, proposals: true }]
];

const productionPlugins = [
'babel-plugin-transform-react-constant-elements',
'@babel/plugin-transform-react-constant-elements',
[
'transform-react-remove-prop-types',
{
Expand Down
30 changes: 1 addition & 29 deletions package-lock.json

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

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"test:storybook:update": "server-test storybook:ci http-get://localhost:12123 'npm run test:storybook:setup -- --updateSnapshot'"
},
"dependencies": {
"@babel/runtime": "^7.10.2",
"@babel/runtime-corejs3": "^7.10.2",
"chain-function": "^1.0.1",
"classnames": "^2.2.6",
"detect-browser": "^5.1.0",
Expand All @@ -65,7 +65,7 @@
"@babel/node": "^7.10.1",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-proposal-object-rest-spread": "^7.10.1",
"@babel/plugin-transform-object-assign": "^7.10.1",
"@babel/plugin-transform-react-constant-elements": "^7.10.1",
"@babel/plugin-transform-runtime": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/preset-react": "^7.10.1",
Expand All @@ -88,7 +88,6 @@
"babel-loader": "8.1.0",
"babel-plugin-named-asset-import": "^0.3.2",
"babel-plugin-require-context-hook": "^1.0.0",
"babel-plugin-transform-react-constant-elements": "^6.23.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.23",
"babel-preset-react-app": "^9.1.2",
"core-js": "^3.1.4",
Expand Down Expand Up @@ -120,8 +119,7 @@
"react-dom": "^16.8.0",
"react-router-dom": "^5.2.0",
"react-syntax-highlighter": "^12.2.1",
"react-test-renderer": "^16.13.1",
"regenerator-runtime": "^0.13.5",
"react-test-renderer": "^16.8.0",
"sass-loader": "^8.0.2",
"size-limit": "^4.5.0",
"standard-version": "^8.0.0",
Expand Down

0 comments on commit 7c5bae2

Please sign in to comment.