Skip to content

Commit

Permalink
Adding fix for plugin-proposal-numeric-separator per babel#12310
Browse files Browse the repository at this point in the history
  • Loading branch information
fraywing committed Nov 4, 2020
1 parent 12c6db6 commit 837ae56
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -9,7 +9,7 @@ import syntaxNumericSeparator from "@babel/plugin-syntax-numeric-separator";
*/
function remover({ node }: NodePath<BigIntLiteral | NumericLiteral>) {
const { extra } = node;
if (extra && extra.raw.includes("_")) {
if (extra?.raw?.includes("_")) {
extra.raw = extra.raw.replace(/_/g, "");
}
}
Expand Down

0 comments on commit 837ae56

Please sign in to comment.