-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: stub out browserslist an tr46 packages MONGOSH-1335 (#1397)
Both of these packages add nontrivial amounts of code to our bundles without providing additional value to mongosh. Therefore, we stub these out and save about 50 % of our bundle size and shave off about 10 % of startup duration.
- Loading branch information
Showing
5 changed files
with
285 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
// Babel has a dependency on browserslist (and in particular, | ||
// caniuse-lite through browserslist, which is a fairly large | ||
// npm package). However, the way in which we use babel does | ||
// not actually require browserslist support, so we can safely | ||
// stub this away. | ||
module.exports = () => { | ||
throw new Error('browserslist not supported'); | ||
}; |
Oops, something went wrong.