mini-entry
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: youzhao.zhou | ||
* @Last Modified time: 2023-11-17 15:55:12 | ||
* @Last Modified time: 2023-12-29 10:34:08 | ||
* @Description 获取webpack入口 | ||
@@ -97,7 +97,22 @@ * | ||
const allEntry = { | ||
...entry, | ||
...result.entry, | ||
}; | ||
const filterAllEntry = Object.create(null); | ||
const deps = Object.create(null); | ||
Object.keys(allEntry).forEach((key) => { | ||
if (filterAllEntry[key] || deps[JSON.stringify(allEntry[key])]) { | ||
return; | ||
} | ||
deps[JSON.stringify(allEntry[key])] = true; | ||
filterAllEntry[key] = allEntry[key]; | ||
}); | ||
return { | ||
entry: { | ||
...entry, | ||
...result.entry, | ||
}, | ||
entry: temp, | ||
subPackagesDir: [...subPackagesDir, ...result.subPackagesDir], | ||
@@ -328,5 +343,5 @@ }; | ||
if (page.pages <= 0) { | ||
return [join(page.root || "", "index")] | ||
return [join(page.root || "", "index")]; | ||
} | ||
return page.pages.map((subPage) => { | ||
@@ -401,3 +416,3 @@ return join(page.root || "", subPage); | ||
); | ||
if (fs.existsSync(configPathByPlatform)) { | ||
@@ -404,0 +419,0 @@ entryConfigPath.add(configPathByPlatform); |
{ | ||
"name": "mini-entry", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "解析小程序json", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17678
616