Skip to content

Commit

Permalink
fix: remove environment context.target
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Jun 28, 2024
1 parent dffaa6a commit 55745b7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/core/src/createContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ export async function updateEnvironmentContext(
context.environments[name] = {
index,
name,
target: config.output.target,
distPath: getAbsoluteDistPath(context.rootPath, config),
entry,
browserslist,
Expand Down
2 changes: 0 additions & 2 deletions packages/core/tests/__snapshots__/environments.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ exports[`environment config > should normalize context correctly 1`] = `
"htmlPaths": {},
"index": 0,
"name": "ssr",
"target": "node",
"tsconfigPath": undefined,
},
"web": {
Expand Down Expand Up @@ -254,7 +253,6 @@ exports[`environment config > should normalize context correctly 1`] = `
"htmlPaths": {},
"index": 1,
"name": "web",
"target": "web",
"tsconfigPath": undefined,
},
}
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/types/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export type ModifyEnvironmentConfigFn = (
export type EnvironmentContext = {
index: number;
name: string;
target: RsbuildTarget;
entry: RsbuildEntry;
htmlPaths: Record<string, string>;
distPath: string;
Expand Down

0 comments on commit 55745b7

Please sign in to comment.