Skip to content

Commit b3e8e4a

Browse files
fix: initialize generator in esbuild plugin (#4949)
1 parent 8a15b54 commit b3e8e4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/router-plugin/src/core/router-generator-plugin.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,10 @@ export const unpluginRouterGeneratorFactory: UnpluginFactory<
144144
console.info('✅ ' + PLUGIN_NAME + ': route-tree generation done')
145145
})
146146
},
147+
esbuild: {
148+
config() {
149+
initConfigAndGenerator()
150+
},
151+
},
147152
}
148153
}

0 commit comments

Comments
 (0)