Skip to content

Commit

Permalink
Merge pull request #184 from 201608010514/release-3.6.8-app
Browse files Browse the repository at this point in the history
fix: 修复部分三方库会被过滤掉未拷贝的问题
  • Loading branch information
qican77 authored Sep 7, 2023
2 parents 7c22916 + 01679ea commit d302be6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/taro-cli-convertor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,16 +597,16 @@ export default class Convertor {
}
if (files.size) {
files.forEach((file) => {
if (!fs.existsSync(file) || this.hadBeenCopyedFiles.has(file)) {
return
}

// 处理三方库引用,可在convert.config.json中nodePath字段自定义配置配置,默认node_modules
if (!path.isAbsolute(file)) {
handleThirdPartyLib(file, this.convertConfig?.nodePath, this.root, this.convertRoot)
return
}

if (!fs.existsSync(file) || this.hadBeenCopyedFiles.has(file)) {
return
}

// 处理不转换的目录,可在convert.config.json中external字段配置
const matchUnconvertDir: string | null = getMatchUnconvertDir(file, this.convertConfig?.external)
if (matchUnconvertDir !== null) {
Expand Down

0 comments on commit d302be6

Please sign in to comment.