mirror of https://github.com/webpack/webpack.git
fix: make `bigint` support optimistic when browserslist not found
This commit is contained in:
commit
4047985205
|
@ -1122,7 +1122,8 @@ const applyOutputDefaults = (
|
|||
F(
|
||||
environment,
|
||||
"bigIntLiteral",
|
||||
() => /** @type {boolean | undefined} */ (tp && tp.bigIntLiteral)
|
||||
() =>
|
||||
tp && optimistic(/** @type {boolean | undefined} */ (tp.bigIntLiteral))
|
||||
);
|
||||
F(
|
||||
environment,
|
||||
|
|
|
@ -118,7 +118,7 @@ describe("snapshots", () => {
|
|||
"environment": Object {
|
||||
"arrowFunction": true,
|
||||
"asyncFunction": true,
|
||||
"bigIntLiteral": undefined,
|
||||
"bigIntLiteral": true,
|
||||
"const": true,
|
||||
"destructuring": true,
|
||||
"document": true,
|
||||
|
@ -350,7 +350,7 @@ describe("snapshots", () => {
|
|||
"environment": Object {
|
||||
"arrowFunction": true,
|
||||
"asyncFunction": true,
|
||||
"bigIntLiteral": undefined,
|
||||
"bigIntLiteral": true,
|
||||
"const": true,
|
||||
"destructuring": true,
|
||||
"document": true,
|
||||
|
@ -2067,7 +2067,7 @@ describe("snapshots", () => {
|
|||
@@ ... @@
|
||||
- "arrowFunction": true,
|
||||
- "asyncFunction": true,
|
||||
- "bigIntLiteral": undefined,
|
||||
- "bigIntLiteral": true,
|
||||
- "const": true,
|
||||
- "destructuring": true,
|
||||
+ "arrowFunction": false,
|
||||
|
@ -2101,7 +2101,7 @@ describe("snapshots", () => {
|
|||
@@ ... @@
|
||||
- "arrowFunction": true,
|
||||
- "asyncFunction": true,
|
||||
- "bigIntLiteral": undefined,
|
||||
- "bigIntLiteral": true,
|
||||
- "const": true,
|
||||
- "destructuring": true,
|
||||
+ "arrowFunction": false,
|
||||
|
|
Loading…
Reference in New Issue