@mpxjs/webpack-plugin 2.7.1-beta.8 → 2.7.1-beta.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.
- package/lib/loader.js +1 -1
- package/package.json +2 -2
package/lib/loader.js
CHANGED
|
@@ -51,7 +51,7 @@ module.exports = function (content) {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// 支持资源query传入isPage或isComponent支持页面/组件单独编译
|
|
54
|
-
if (queryObj.isComponent || queryObj.isPage) {
|
|
54
|
+
if (ctorType === 'app' && (queryObj.isComponent || queryObj.isPage)) {
|
|
55
55
|
const entryName = getEntryName(this) || (queryObj.isComponent ? 'noEntryComponent' : 'noEntryPage')
|
|
56
56
|
ctorType = queryObj.isComponent ? 'component' : 'page'
|
|
57
57
|
this._module.addPresentationalDependency(new RecordResourceMapDependency(resourcePath, ctorType, entryName, packageRoot))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.7.1-beta.
|
|
3
|
+
"version": "2.7.1-beta.9",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=14.14.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "1db86dfb15540cb9e65acf8066e517bf48be29fd"
|
|
84
84
|
}
|