Skip to content

Commit 434ddc6

Browse files
committed
perf: omit proxy-agent from browser bundle
Sets `proxy-agent` as an `external` in the `rsbuild` config file. Removes ~2.4 MB from the browser bundle (~5 MB from the package size because of the map file). Closes #812
1 parent 3ef0ab2 commit 434ddc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rsbuild.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default defineConfig({
3434
'node:http': 'node:http',
3535
'node:https': 'node:https',
3636
crypto: 'node:crypto',
37+
'proxy-agent': 'proxy-agent',
3738
},
3839
},
3940
tools: {

0 commit comments

Comments
 (0)