Skip to content

Commit

Permalink
fix(projects): fix the timing of the genTransformFile function
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed May 19, 2024
1 parent 356127e commit 6397732
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vue/src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ export default class ElegantVueRouter {

this.options = createPluginOptions(this.elegantRouter.options, options);

genTransformFile(this.options, this.elegantRouter.entries);

this.generate();
}

Expand Down Expand Up @@ -56,6 +54,7 @@ export default class ElegantVueRouter {
async generate() {
const { files, entries, trees } = this.elegantRouter;

genTransformFile(this.options, entries);
await genDtsFile(files, entries, this.options);
await genImportsFile(files, this.options);
await genConstFile(trees, this.options);
Expand Down

0 comments on commit 6397732

Please sign in to comment.