Skip to content

Commit

Permalink
docs: 注释
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEJIA-LIU committed Sep 5, 2024
1 parent 1cb0c4d commit 59f2db3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/taro-webpack-runner/src/utils/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,11 @@ export const parseModule = (appPath: string, {
}
}

// Note: 和 webpack5 的 include 和 exclude 的逻辑保持一致:
// 什么都不配置时,默认只处理 sourceDir 和 taro 和 inversify 的第三方依赖


/** Note: 和 webpack5 的 include 和 exclude 的逻辑保持基本一致:
* 什么都不配置时,默认只处理 sourceDir 和 taro 和 inversify 的第三方依赖
* 如果配置了 include,则把配置的 include 内容 unshift 到默认的 include
* 如果配置了 exclude,则把配置的 exclude 内容 unshift 到默认的 exclude (webpack5 会直用配置的 exclude 进行覆盖)
*/
scriptRule.include = [
sourceDir,
filename => /(?<=node_modules[\\/]).*taro/.test(filename) || /inversify/.test(filename)
Expand Down

0 comments on commit 59f2db3

Please sign in to comment.