fix: add bigIntSuffix to minified output (#11645)
This commit is contained in:
parent
69198beee6
commit
5b24d79875
@ -219,7 +219,7 @@ export function BigIntLiteral(node: Object) {
|
|||||||
this.token(raw);
|
this.token(raw);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.token(node.value);
|
this.token(node.value + "n");
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PipelineTopicExpression(node: Object) {
|
export function PipelineTopicExpression(node: Object) {
|
||||||
|
|||||||
1
packages/babel-generator/test/fixtures/minified/bigint/input.js
vendored
Normal file
1
packages/babel-generator/test/fixtures/minified/bigint/input.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
const N_A = 600221407600000000000000n;
|
||||||
1
packages/babel-generator/test/fixtures/minified/bigint/output.js
vendored
Normal file
1
packages/babel-generator/test/fixtures/minified/bigint/output.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
const N_A=600221407600000000000000n;
|
||||||
Loading…
x
Reference in New Issue
Block a user