update
This commit is contained in:
+14
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user