Skip to content

Commit

Permalink
fix: 修复小程序插件 comp 路径引用错误问题 (#16320)
Browse files Browse the repository at this point in the history
fix #16307

Co-authored-by: 韩高钶 <[email protected]>
Co-authored-by: Shijie Yu <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2024
1 parent c17123d commit 7029f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-webpack5-runner/src/plugins/MiniPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1278,8 +1278,8 @@ export default class TaroMiniPlugin {
}

if (config) {
const importBaseCompPath = promoteRelativePath(path.relative(page.path, path.join(sourceDir, this.getTargetFilePath(baseCompName, ''))))
const importCustomWrapperPath = promoteRelativePath(path.relative(page.path, path.join(sourceDir, this.getTargetFilePath(customWrapperName, ''))))
const importBaseCompPath = promoteRelativePath(path.relative(page.path, path.join(sourceDir, isBuildPlugin ? 'plugin' : '', this.getTargetFilePath(baseCompName, ''))))
const importCustomWrapperPath = promoteRelativePath(path.relative(page.path, path.join(sourceDir, isBuildPlugin ? 'plugin' : '', this.getTargetFilePath(customWrapperName, ''))))
config.content.usingComponents = {
...config.content.usingComponents
}
Expand Down

0 comments on commit 7029f3e

Please sign in to comment.