Skip to content

Commit

Permalink
feat: pass in the dev mode to build plugins (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
barak007 authored Jun 27, 2024
1 parent 88ff9ed commit 38c1dac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function createBuildConfiguration(options: CreateBuildConfigOptions) {
} satisfies BuildOptions;

if (typeof buildPlugins === 'function') {
return buildPlugins({ webConfig, nodeConfig });
return buildPlugins({ webConfig, nodeConfig, dev });
}

return {
Expand Down
1 change: 1 addition & 0 deletions packages/scripts/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export interface StaticConfig {
export type BuildConfiguration = {
webConfig: BuildOptions;
nodeConfig: BuildOptions;
dev: boolean;
};

export type OverrideConfigHook = <const T extends BuildConfiguration>(config: T) => T;
Expand Down

0 comments on commit 38c1dac

Please sign in to comment.