diff --git a/packages/taro-mini-runner/src/plugins/MiniPlugin.ts b/packages/taro-mini-runner/src/plugins/MiniPlugin.ts index 62b1ff2c99db..fe732db793be 100644 --- a/packages/taro-mini-runner/src/plugins/MiniPlugin.ts +++ b/packages/taro-mini-runner/src/plugins/MiniPlugin.ts @@ -443,6 +443,7 @@ export default class MiniPlugin { code: transformResult.code } this.pages = new Set([ + ...this.pages, ...appPages.map(item => { const pagePath = resolveScriptPath(path.join(this.sourceDir, item)) const pageTemplatePath = this.getTemplatePath(pagePath)