@mpxjs/webpack-plugin 2.8.25-alpha.5 → 2.8.25-alpha.9
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.
|
@@ -76,7 +76,8 @@ ResolveDependency.Template = class ResolveDependencyTemplate {
|
|
|
76
76
|
const { resolved = '' } = dep
|
|
77
77
|
// for tenon
|
|
78
78
|
if (dep.compilation.__mpx__.mode === 'tenon') {
|
|
79
|
-
|
|
79
|
+
// 暂时仅支持所有产物在一个目录下的场景
|
|
80
|
+
return `(Hummer.pageInfo && Hummer.pageInfo.url && Hummer.pageInfo.url.replace(/\\/[^/]+(?=\\.[^.]+($|\\?))/, '/${resolved}') || './${resolved}.js')`
|
|
80
81
|
}
|
|
81
82
|
// ?resolve 必定返回绝对路径
|
|
82
83
|
return JSON.stringify('/' + resolved)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.8.25-alpha.
|
|
3
|
+
"version": "2.8.25-alpha.9",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": ">=14.14.0"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "d72375368adb6722365c623816fd14c28026f836"
|
|
89
89
|
}
|