Skip to content

Commit

Permalink
fix(mini-runner): 修复普通小程序编译的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Dec 26, 2019
1 parent f6834fe commit d348879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-mini-runner/src/plugins/MiniPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export default class MiniPlugin {
template,
code
}
if (taroSelfComponents) {
if (isQuickApp && taroSelfComponents) {
taroFileTypeMap[file.path].taroSelfComponents = new Set(Array.from(taroSelfComponents).map(item => {
const taroJsQuickAppComponentsPath = getTaroJsQuickAppComponentsPath(this.options.nodeModulesPath)
const componentPath = path.join(taroJsQuickAppComponentsPath, item as string, `index${MINI_APP_FILES[buildAdapter].TEMPL}`)
Expand Down

0 comments on commit d348879

Please sign in to comment.