@arkxio/ark-dev-utils 0.1.12 → 0.1.13
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/index.js +2 -1
- package/dist/index.min.js +2 -1
- package/lib/index.js +2 -1
- package/package.json +1 -1
- package/src/ArkWebpackPlugin.js +2 -1
package/dist/index.js
CHANGED
|
@@ -1235,7 +1235,8 @@
|
|
|
1235
1235
|
content = content.replace(webpackRequireLPatternEval, 'window.ArkConfig.cdnHost');
|
|
1236
1236
|
// }
|
|
1237
1237
|
|
|
1238
|
-
const webpackRequireLPattern = /"(https:\/\/unpkg\.com)/g;
|
|
1238
|
+
// const webpackRequireLPattern = /"(https:\/\/unpkg\.com)/g;
|
|
1239
|
+
const webpackRequireLPattern = /(?<!\\)"(https:\/\/unpkg\.com)/g;
|
|
1239
1240
|
verbose('检测到 unpkg.com 模式');
|
|
1240
1241
|
content = content.replace(webpackRequireLPattern,`window.ArkConfig.cdnHost + "`);
|
|
1241
1242
|
// }
|
package/dist/index.min.js
CHANGED
|
@@ -1235,7 +1235,8 @@
|
|
|
1235
1235
|
content = content.replace(webpackRequireLPatternEval, 'window.ArkConfig.cdnHost');
|
|
1236
1236
|
// }
|
|
1237
1237
|
|
|
1238
|
-
const webpackRequireLPattern = /"(https:\/\/unpkg\.com)/g;
|
|
1238
|
+
// const webpackRequireLPattern = /"(https:\/\/unpkg\.com)/g;
|
|
1239
|
+
const webpackRequireLPattern = /(?<!\\)"(https:\/\/unpkg\.com)/g;
|
|
1239
1240
|
verbose('检测到 unpkg.com 模式');
|
|
1240
1241
|
content = content.replace(webpackRequireLPattern,`window.ArkConfig.cdnHost + "`);
|
|
1241
1242
|
// }
|
package/lib/index.js
CHANGED
|
@@ -1240,7 +1240,8 @@ class ArkWebpackPlugin {
|
|
|
1240
1240
|
content = content.replace(webpackRequireLPatternEval, 'window.ArkConfig.cdnHost');
|
|
1241
1241
|
// }
|
|
1242
1242
|
|
|
1243
|
-
const webpackRequireLPattern = /"(https:\/\/unpkg\.com)/g;
|
|
1243
|
+
// const webpackRequireLPattern = /"(https:\/\/unpkg\.com)/g;
|
|
1244
|
+
const webpackRequireLPattern = /(?<!\\)"(https:\/\/unpkg\.com)/g;
|
|
1244
1245
|
verbose('检测到 unpkg.com 模式');
|
|
1245
1246
|
content = content.replace(webpackRequireLPattern,`window.ArkConfig.cdnHost + "`);
|
|
1246
1247
|
// }
|
package/package.json
CHANGED
package/src/ArkWebpackPlugin.js
CHANGED
|
@@ -80,7 +80,8 @@ export default class ArkWebpackPlugin {
|
|
|
80
80
|
findUnpkgModel = true;
|
|
81
81
|
// }
|
|
82
82
|
|
|
83
|
-
const webpackRequireLPattern = /"(https:\/\/unpkg\.com)/g;
|
|
83
|
+
// const webpackRequireLPattern = /"(https:\/\/unpkg\.com)/g;
|
|
84
|
+
const webpackRequireLPattern = /(?<!\\)"(https:\/\/unpkg\.com)/g;
|
|
84
85
|
// if (webpackRequireLPattern.test(content)) {
|
|
85
86
|
// webpackRequireLPattern.lastIndex = 0;
|
|
86
87
|
findUnpkgModel = true;
|