mini-entry
Advanced tools
Comparing version 0.0.13 to 0.1.0
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: youzhao.zhou | ||
* @Last Modified time: 2021-04-22 18:00:30 | ||
* @Last Modified time: 2021-04-23 14:18:20 | ||
* @Description 获取webpack入口 | ||
@@ -32,2 +32,3 @@ * | ||
const generateNodeModuleEntry = require("./utils/generateNodeModuleEntry"); | ||
const isIgnore = require("./utils/isIgnore"); | ||
@@ -298,2 +299,5 @@ /** | ||
const componentPathList = Object.values(components) | ||
.filter((pathUrl) => { | ||
return !isIgnore(pathUrl); | ||
}) | ||
.map((pathUrl) => { | ||
@@ -391,2 +395,10 @@ // 检查是不是node_modules | ||
if (!config.ignoreEntry) { | ||
config.ignoreEntry = ["^plugin://", "^@miniprogram-component-plus"]; | ||
} | ||
if (!Array.isArray(config.ignoreEntry)) { | ||
config.ignoreEntry = [config.ignoreEntry]; | ||
} | ||
const paths = globby.sync(Object.values(config.entry)); | ||
@@ -393,0 +405,0 @@ |
{ | ||
"name": "mini-entry", | ||
"version": "0.0.13", | ||
"version": "0.1.0", | ||
"description": "解析小程序json", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -34,3 +34,3 @@ interface IMiniEntryOptions { | ||
*/ | ||
ignoreEntry: string[]; | ||
ignoreEntry?: string[]; | ||
} | ||
@@ -37,0 +37,0 @@ |
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
15505
10
548