Skip to content

Commit

Permalink
fix(builder): export type of rspack config and add globalObject type (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Amour1688 authored Nov 29, 2023
1 parent ba443b8 commit ef60f58
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/lemon-clocks-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@modern-js/builder-rspack-provider': patch
'@modern-js/builder-shared': patch
---

fix(builder): export type of rspack config and add globalObject type for rspack output
fix(builder): 导出一些 rspack config 类型同时给 rspack output 添加 globalObject 类型
6 changes: 6 additions & 0 deletions packages/builder/builder-rspack-provider/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ export type {
// Config Types
BuilderConfig,
NormalizedConfig,
DevConfig,
OutputConfig,
ToolsConfig,
SourceConfig,
SecurityConfig,
PerformanceConfig,

// Hook Callback Types
ModifyRspackConfigFn,
Expand Down
1 change: 1 addition & 0 deletions packages/builder/builder-shared/src/types/bundlerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type RspackOutput = {
assetModuleFilename?: string;
filename?: string;
chunkFilename?: string;
globalObject?: string;
uniqueName?: string;
hashFunction?: string;
cssFilename?: string;
Expand Down

0 comments on commit ef60f58

Please sign in to comment.