extension-develop 3.0.0-next.6 → 3.0.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.js +1183 -381
- package/dist/resolve-paths-loader.js +6 -2
- package/package.json +1 -1
|
@@ -1328,8 +1328,12 @@ var __webpack_exports__ = {};
|
|
|
1328
1328
|
let start = span.start - 1;
|
|
1329
1329
|
let end = span.end + 1;
|
|
1330
1330
|
const q = before;
|
|
1331
|
-
const
|
|
1332
|
-
ms.overwrite(start, end,
|
|
1331
|
+
const json = JSON.stringify(String(computed));
|
|
1332
|
+
if ('"' === q) ms.overwrite(start, end, json);
|
|
1333
|
+
else {
|
|
1334
|
+
const inner = json.slice(1, -1).replace(/'/g, "\\'");
|
|
1335
|
+
ms.overwrite(start, end, `'${inner}'`);
|
|
1336
|
+
}
|
|
1333
1337
|
} else ms.overwrite(span.start, span.end, JSON.stringify(computed));
|
|
1334
1338
|
edited = true;
|
|
1335
1339
|
}
|