Skip to content

Commit

Permalink
set env whenever we create bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
gorakong committed Feb 17, 2022
1 parent 0a9f32d commit 73ad828
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bundlers/experimental/src/ExperimentalBundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ function decorateLegacyGraph(
needsStableName: idealBundle.needsStableName,
bundleBehavior: idealBundle.bundleBehavior,
target: idealBundle.target,
env: idealBundle.env,
}),
);

Expand All @@ -172,6 +173,7 @@ function decorateLegacyGraph(
needsStableName: idealBundle.needsStableName,
bundleBehavior: idealBundle.bundleBehavior,
target: idealBundle.target,
env: idealBundle.env,
}),
);
}
Expand Down Expand Up @@ -370,6 +372,7 @@ function createIdealGraph(
invariant(firstBundleGroup !== 'root');
bundle = createBundle({
asset: childAsset,
env: firstBundleGroup.target.env,
target: firstBundleGroup.target,
needsStableName:
dependency.bundleBehavior === 'inline' ||
Expand Down Expand Up @@ -460,6 +463,7 @@ function createIdealGraph(
// Create a new bundle if none of the same type exists already.
bundle = createBundle({
asset: childAsset,
env: bundleGroup.target.env,
target: bundleGroup.target,
needsStableName:
childAsset.bundleBehavior === 'inline' ||
Expand Down

0 comments on commit 73ad828

Please sign in to comment.