Adding includes fix for plugin-proposal-numeric-separator (#12311)
Co-authored-by: fraywing <austin@rupie.io>
This commit is contained in:
parent
12c6db6fae
commit
ddf30ee233
@ -9,7 +9,7 @@ import syntaxNumericSeparator from "@babel/plugin-syntax-numeric-separator";
|
|||||||
*/
|
*/
|
||||||
function remover({ node }: NodePath<BigIntLiteral | NumericLiteral>) {
|
function remover({ node }: NodePath<BigIntLiteral | NumericLiteral>) {
|
||||||
const { extra } = node;
|
const { extra } = node;
|
||||||
if (extra && extra.raw.includes("_")) {
|
if (extra?.raw?.includes("_")) {
|
||||||
extra.raw = extra.raw.replace(/_/g, "");
|
extra.raw = extra.raw.replace(/_/g, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user