fix: add regenerate-unicode-properties to dynamicRequireTargets (#12819)

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
Huáng Jùnliàng
2021-02-20 14:05:12 -05:00
committed by GitHub
parent 3af936fc2b
commit 72961e4564
2 changed files with 29 additions and 0 deletions

View File

@@ -217,6 +217,13 @@
}),
).not.toThrow();
});
it("#12815 - unicode property letter short alias should be transformed", () => {
expect(() =>
Babel.transform("/\\p{L}/u", {
plugins: ["proposal-unicode-property-regex"],
}),
).not.toThrow();
});
});
},
);