Skip to content

Commit

Permalink
fix(uni-builder): modernjs should extend "ua" type in output.polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Apr 15, 2024
1 parent 855166c commit e401d40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/famous-years-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modern-js/uni-builder': patch
---

fix(uni-builder): modernjs should extend "ua" type in output.polyfill
5 changes: 4 additions & 1 deletion packages/cli/uni-builder/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type {
RsbuildPluginAPI,
ArrayOrNot,
HtmlTagDescriptor,
Polyfill,
} from '@rsbuild/shared';
import type { RsbuildConfig } from '@rsbuild/core';
import type { PluginAssetsRetryOptions } from '@rsbuild/plugin-assets-retry';
Expand Down Expand Up @@ -380,7 +381,9 @@ export type UniBuilderPlugin = {
export type UniBuilderConfig = {
dev?: RsbuildConfig['dev'];
html?: RsbuildConfig['html'];
output?: RsbuildConfig['output'];
output?: Omit<NonNullable<RsbuildConfig['output']>, 'polyfill'> & {
polyfill?: Polyfill | 'ua';
};
performance?: RsbuildConfig['performance'];
security?: RsbuildConfig['security'];
tools?: RsbuildConfig['tools'];
Expand Down

0 comments on commit e401d40

Please sign in to comment.