Skip to content

Commit

Permalink
[upd] Support older browsers from 2016 including IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklim committed Jun 20, 2020
1 parent 9364ec2 commit 9a17c98
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 44 deletions.
16 changes: 15 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-class-properties"
],
"presets": [["@babel/preset-env"], "@babel/preset-react"],
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"useBuiltIns": "usage",
"debug": true,
"corejs": {
"version": 3,
"proposals": true
}
}
],
"@babel/preset-react"
],
"env": {
"test": {
"presets": ["@babel/preset-env", "@babel/preset-react"],
Expand Down
5 changes: 5 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
> 1%
since 2016
not dead
not op_mini all
not and_qq 1.2
79 changes: 42 additions & 37 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"babel-runtime": "^6.26.0",
"date-fns": "^2.13.0",
"inputmask-core": "^2.2.0",
"jsonld": "1.8.1",
"jsonld": "^0.4.12",
"jsonld-utils": "https://kbss.felk.cvut.cz/dist/jsonld-utils-0.0.11.tgz",
"prop-types": "^15.7.2",
"react-bootstrap": "^1.0.1",
Expand All @@ -61,9 +61,11 @@
"@babel/plugin-transform-runtime": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/preset-react": "^7.9.4",
"@babel/register": "^7.10.3",
"babel-jest": "^26.0.1",
"babel-loader": "^8.1.0",
"clean-css-cli": "^4.3.0",
"core-js": "^3.6.5",
"css-loader": "^3.5.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
Expand Down
8 changes: 3 additions & 5 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
mode: 'development',
context: resolve('test'),
entry: './rendering/TestApp.jsx',
entry: ['core-js/stable/object/assign', 'core-js/stable/promise', './rendering/TestApp.jsx'],
output: {
filename: 'bundle.js',
path: resolve('build/'),
publicPath: '/'
},
devServer: {
host: '0.0.0.0',
port: 8888,
historyApiFallback: true
},
Expand All @@ -27,10 +28,7 @@ module.exports = {
]
},
resolve: {
extensions: ['.js', '.jsx', '.json'],
alias: {
jsonld: resolve('./node_modules/jsonld/dist/jsonld.js')
}
extensions: ['.js', '.jsx', '.json']
},
plugins: [
new HtmlWebpackPlugin({
Expand Down

0 comments on commit 9a17c98

Please sign in to comment.