Skip to content

Commit

Permalink
fix: fix plugin exports not be added
Browse files Browse the repository at this point in the history
  • Loading branch information
kagawagao committed Sep 13, 2022
1 parent 5dbe2f1 commit f70a1c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/taro-webpack5-runner/src/plugins/MiniPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ export default class TaroMiniPlugin {
this.getConfigFiles(compiler)
} else {
this.appConfig = this.getAppConfig()
this.getAppPluginEntries()
this.getPages()
this.getPagesConfig()
this.getDarkMode()
Expand Down Expand Up @@ -655,6 +656,9 @@ export default class TaroMiniPlugin {
this.addEntry(item.path, item.name, META_TYPE.COMPONENT)
}
})
this.pluginExportEntries.forEach((filePath, entryName) => {
this.addEntry(filePath, entryName, META_TYPE.EXPORTS)
})
}

replaceExt (file: string, ext: string) {
Expand Down

0 comments on commit f70a1c7

Please sign in to comment.