Skip to content

Commit 16e2795

Browse files
authored
feat(config): track transitive config dependencies for watch reload (#919)
1 parent 38afd8f commit 16e2795

File tree

14 files changed

+196
-164
lines changed

14 files changed

+196
-164
lines changed

__snapshots__/tsnapi/index.snapshot.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ export type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace"
233233
ignoreWatch: Array<string | RegExp>;
234234
deps: ResolvedDepsConfig;
235235
root: string;
236+
configDeps: Set<string>;
236237
dts: false | DtsOptions;
237238
report: false | ReportOptions;
238239
tsconfig: false | string;
@@ -262,11 +263,11 @@ export type WithEnabled<T> = boolean | undefined | CIOption | (T & {
262263

263264
// Functions
264265
export declare function build(_?: InlineConfig): Promise<TsdownBundle[]>;
265-
export declare function buildWithConfigs(_: ResolvedConfig[], _: string[], _: () => void): Promise<TsdownBundle[]>;
266+
export declare function buildWithConfigs(_: ResolvedConfig[], _: Set<string>, _: () => void): Promise<TsdownBundle[]>;
266267
export declare function defineConfig(_: UserConfigExport): UserConfigExport;
267268
export declare function enableDebug(_?: boolean | Arrayable<string>): void;
268269
export declare function mergeConfig(_: InlineConfig, ..._: InlineConfig[]): InlineConfig;
269-
export declare function resolveUserConfig(_: UserConfig, _: InlineConfig): Promise<ResolvedConfig[]>;
270+
export declare function resolveUserConfig(_: UserConfig, _: InlineConfig, _: Set<string>): Promise<ResolvedConfig[]>;
270271

271272
// Variables
272273
export declare const globalLogger: Logger;

__snapshots__/tsnapi/index.snapshot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export { defineConfig }
66
export function enableDebug(_) {}
77
export var globalLogger /* const */
88
export function mergeConfig(_, ..._) {}
9-
export async function resolveUserConfig(_, _) {}
9+
export async function resolveUserConfig(_, _, _) {}
1010
export { Rolldown }

__snapshots__/tsnapi/plugins.snapshot.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export declare function DepsPlugin({
1414
export declare function NodeProtocolPlugin(_: "strip" | true): Plugin;
1515
export declare function ReportPlugin(_: ResolvedConfig, _?: boolean, _?: boolean): Plugin;
1616
export declare function ShebangPlugin(_: Logger, _: string, _?: string, _?: boolean): Plugin;
17-
export declare function WatchPlugin(_: string[], {
17+
export declare function WatchPlugin(_: Set<string>, {
1818
config,
1919
chunks
2020
}: TsdownBundle): Plugin;

pnpm-lock.yaml

Lines changed: 55 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ catalogs:
1818
'@types/node': ^25.6.0
1919
'@types/picomatch': ^4.0.3
2020
'@types/semver': ^7.7.1
21-
'@typescript/native-preview': 7.0.0-dev.20260415.1
21+
'@typescript/native-preview': 7.0.0-dev.20260416.1
2222
'@vitest/coverage-v8': ^4.1.4
2323
'@vitest/ui': ^4.1.4
2424
baseline-browser-mapping: ^2.10.19
@@ -32,7 +32,7 @@ catalogs:
3232
prettier: ^3.8.3
3333
rolldown-plugin-require-cjs: ^0.4.0
3434
sass: ^1.99.0
35-
tsnapi: ^0.2.0
35+
tsnapi: ^0.2.2
3636
typescript: ~6.0.2
3737
unplugin-ast: ^0.16.0
3838
unplugin-raw: ^0.7.0
@@ -70,7 +70,7 @@ catalogs:
7070
defu: ^6.1.7
7171
empathic: ^2.0.0
7272
hookable: ^6.1.1
73-
import-without-cache: ^0.2.5
73+
import-without-cache: ^0.3.3
7474
is-in-ci: ^2.0.0
7575
lightningcss: ^1.32.0
7676
obug: ^2.1.1

0 commit comments

Comments
 (0)