Skip to content

Commit

Permalink
enhance: Non-ES bundlers will use IE11 compatible build
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Dec 23, 2019
1 parent 2af967b commit 29eaefc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
24 changes: 17 additions & 7 deletions package.json
Expand Up @@ -21,13 +21,23 @@
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"browserslist": [
"> 1%",
"Firefox ESR",
"not dead",
"not ie<12",
"not OperaMini all"
],
"browserslist": {
"production": [
"> 1%",
"Firefox ESR",
"not dead",
"not ie<12",
"not OperaMini all"
],
"legacy": [
"> 0.5%",
"Firefox ESR",
"not dead",
"not ie<11",
"not safari<11",
"not OperaMini all"
]
},
"devDependencies": {
"@anansi/babel-preset": "^0.25.1",
"@anansi/eslint-plugin": "^0.8.0",
Expand Down
1 change: 1 addition & 0 deletions packages/rest-hooks/rollup.config.js
Expand Up @@ -14,6 +14,7 @@ const dependencies = Object.keys(pkg.dependencies)

const extensions = ['.js', '.ts', '.tsx', '.mjs', '.json', '.node'];
process.env.NODE_ENV = 'production';
process.env.BROWSERSLIST_ENV = 'legacy';

function isExternal(id) {
const ret = dependencies.includes(id);
Expand Down

0 comments on commit 29eaefc

Please sign in to comment.