Skip to content

Commit

Permalink
fix(rspack): use NX_GRAPH_CREATION to bail out of withWeb early
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 6, 2024
1 parent fbf5e31 commit bb48cd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rspack/src/plugins/utils/apply-web-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function applyWebConfig(
useNormalizedEntry?: boolean;
} = {}
): void {
if (!process.env['NX_TASK_TARGET_PROJECT']) return;
if (!process.env['NX_GRAPH_CREATION']) return;

// Defaults that was applied from executor schema previously.
options.runtimeChunk ??= true; // need this for HMR and other things to work
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function applyWebConfig(
useNormalizedEntry?: boolean;
} = {}
): void {
if (!process.env['NX_TASK_TARGET_PROJECT']) return;
if (!process.env['NX_GRAPH_CREATION']) return;

// Defaults that was applied from executor schema previously.
options.runtimeChunk ??= true; // need this for HMR and other things to work
Expand Down

0 comments on commit bb48cd0

Please sign in to comment.