Skip to content

Commit

Permalink
fix(rspack): use global.NX_GRAPH_CREATION correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 6, 2024
1 parent f13a87f commit dc99e64
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_GRAPH_CREATION']) return;
if (global.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_GRAPH_CREATION']) return;
if (global.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 dc99e64

Please sign in to comment.