This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+14 -1
View File
@@ -50,6 +50,19 @@ var _default = (0, _helperPluginUtils.declare)(api => {
return {
name: "transform-unicode-escapes",
manipulateOptions({
generatorOpts
}) {
var _generatorOpts$jsescO, _generatorOpts$jsescO2;
if (!generatorOpts.jsescOption) {
generatorOpts.jsescOption = {};
}
(_generatorOpts$jsescO2 = (_generatorOpts$jsescO = generatorOpts.jsescOption).minimal) != null ? _generatorOpts$jsescO2 : _generatorOpts$jsescO.minimal = false;
},
visitor: {
Identifier(path) {
const {
@@ -103,7 +116,7 @@ var _default = (0, _helperPluginUtils.declare)(api => {
const {
extra
} = node;
if (extra == null ? void 0 : extra.raw) extra.raw = replaceUnicodeEscapes(extra.raw);
if (extra != null && extra.raw) extra.raw = replaceUnicodeEscapes(extra.raw);
},
TemplateElement(path) {