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(
|
F(
|
||||||
environment,
|
environment,
|
||||||
"bigIntLiteral",
|
"bigIntLiteral",
|
||||||
() => /** @type {boolean | undefined} */ (tp && tp.bigIntLiteral)
|
() =>
|
||||||
|
tp && optimistic(/** @type {boolean | undefined} */ (tp.bigIntLiteral))
|
||||||
);
|
);
|
||||||
F(
|
F(
|
||||||
environment,
|
environment,
|
||||||
|
|
|
@ -118,7 +118,7 @@ describe("snapshots", () => {
|
||||||
"environment": Object {
|
"environment": Object {
|
||||||
"arrowFunction": true,
|
"arrowFunction": true,
|
||||||
"asyncFunction": true,
|
"asyncFunction": true,
|
||||||
"bigIntLiteral": undefined,
|
"bigIntLiteral": true,
|
||||||
"const": true,
|
"const": true,
|
||||||
"destructuring": true,
|
"destructuring": true,
|
||||||
"document": true,
|
"document": true,
|
||||||
|
@ -350,7 +350,7 @@ describe("snapshots", () => {
|
||||||
"environment": Object {
|
"environment": Object {
|
||||||
"arrowFunction": true,
|
"arrowFunction": true,
|
||||||
"asyncFunction": true,
|
"asyncFunction": true,
|
||||||
"bigIntLiteral": undefined,
|
"bigIntLiteral": true,
|
||||||
"const": true,
|
"const": true,
|
||||||
"destructuring": true,
|
"destructuring": true,
|
||||||
"document": true,
|
"document": true,
|
||||||
|
@ -2067,7 +2067,7 @@ describe("snapshots", () => {
|
||||||
@@ ... @@
|
@@ ... @@
|
||||||
- "arrowFunction": true,
|
- "arrowFunction": true,
|
||||||
- "asyncFunction": true,
|
- "asyncFunction": true,
|
||||||
- "bigIntLiteral": undefined,
|
- "bigIntLiteral": true,
|
||||||
- "const": true,
|
- "const": true,
|
||||||
- "destructuring": true,
|
- "destructuring": true,
|
||||||
+ "arrowFunction": false,
|
+ "arrowFunction": false,
|
||||||
|
@ -2101,7 +2101,7 @@ describe("snapshots", () => {
|
||||||
@@ ... @@
|
@@ ... @@
|
||||||
- "arrowFunction": true,
|
- "arrowFunction": true,
|
||||||
- "asyncFunction": true,
|
- "asyncFunction": true,
|
||||||
- "bigIntLiteral": undefined,
|
- "bigIntLiteral": true,
|
||||||
- "const": true,
|
- "const": true,
|
||||||
- "destructuring": true,
|
- "destructuring": true,
|
||||||
+ "arrowFunction": false,
|
+ "arrowFunction": false,
|
||||||
|
|
Loading…
Reference in New Issue