Skip to content

Commit

Permalink
fix: mpa router path error (#3303)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbin92 committed Jun 30, 2020
1 parent 629fc79 commit fa3850c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/plugin-core/src/utils/getRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ function getRoutes({ rootDir, tempDir, configPath, projectType, isMpa }: IParams
const routesTempPath = path.join(tempDir, 'routes.ts');
fse.writeFileSync(routesTempPath, 'export default [];', 'utf-8');
configPath = routesTempPath;
return {
routesPath: configPath,
isConfigRoutes: true
};
}

const routesPath = configPath
Expand Down

0 comments on commit fa3850c

Please sign in to comment.