@mpxjs/webpack-plugin 2.8.11 → 2.8.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.
|
@@ -184,7 +184,8 @@ DynamicEntryDependency.Template = class DynamicEntryDependencyTemplate {
|
|
|
184
184
|
replaceContent = JSON.stringify(true)
|
|
185
185
|
} else if (resultPath) {
|
|
186
186
|
if (extraOptions.isRequireAsync) {
|
|
187
|
-
|
|
187
|
+
let relativePath = toPosix(path.relative(publicPath + path.dirname(chunkGraph.getModuleChunks(module)[0].name), resultPath))
|
|
188
|
+
if (!relativePath.startsWith('.')) relativePath = './' + relativePath
|
|
188
189
|
replaceContent = JSON.stringify(relativePath)
|
|
189
190
|
if (extraOptions.retryRequireAsync) {
|
|
190
191
|
replaceContent += `).catch(function (e) {
|
|
@@ -1189,8 +1189,8 @@ function parseMustache (raw = '') {
|
|
|
1189
1189
|
|
|
1190
1190
|
if (i18n) {
|
|
1191
1191
|
for (const i18nFuncName of i18nFuncNames) {
|
|
1192
|
-
const funcNameRE = new RegExp(
|
|
1193
|
-
const funcNameREG = new RegExp(
|
|
1192
|
+
const funcNameRE = new RegExp(`(?<![A-Za-z0-9_$.])${i18nFuncName}\\(`)
|
|
1193
|
+
const funcNameREG = new RegExp(`(?<![A-Za-z0-9_$.])${i18nFuncName}\\(`, 'g')
|
|
1194
1194
|
if (funcNameRE.test(exp)) {
|
|
1195
1195
|
if (i18n.useComputed || !i18nFuncName.startsWith('\\$')) {
|
|
1196
1196
|
const i18nInjectComputedKey = `_i${i18nInjectableComputed.length + 1}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.13",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"engines": {
|
|
83
83
|
"node": ">=14.14.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "257b5bd882d6344be8ce36a99715c87f9d8adb51"
|
|
86
86
|
}
|