Skip to content

Commit cee4508

Browse files
committed
fix: use configResolved hook
1 parent d54654f commit cee4508

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/curvy-chicken-swim.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/rollup-plugin': patch
3+
---
4+
5+
fix: use configResolved hook

packages/rollup-plugin/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export function heyApiPlugin(options?: {
77
config?: Parameters<typeof createClient>[0];
88
}) {
99
return {
10-
buildStart: async () => {
10+
// TODO: rename to vite-plugin if we end up using `configResolved`
11+
configResolved: async () => {
1112
await createClient(options?.config);
1213
},
1314
enforce: 'pre',

0 commit comments

Comments
 (0)