Skip to content

Commit

Permalink
feat(cli): compile exclude 可以排除文件夹, close #1830
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jan 22, 2019
1 parent 0b064a7 commit 2b0e999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-cli/src/weapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ function compileDepScripts (scriptFiles) {
const compileExclude = useCompileConf.exclude || []
let isInCompileExclude = false
compileExclude.forEach(excludeItem => {
if (path.join(appPath, excludeItem) === item) {
if (item.indexOf(path.join(appPath, excludeItem)) >= 0) {
isInCompileExclude = true
}
})
Expand Down

1 comment on commit 2b0e999

@tourze
Copy link
Contributor

@tourze tourze commented on 2b0e999 Nov 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个特性,是不是已经在新版本中不支持了?在 cdd9c81 这次提交中,exclude必须是node_modules开头了。

Please sign in to comment.