Skip to content

Commit 6447f90

Browse files
Merge branch 'dev' into markdalgleish/cache-css-side-effects-hmr
2 parents ac2d30a + 43ec6af commit 6447f90

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@remix-run/dev": patch
3+
---
4+
5+
Improve CSS bundle build performance by skipping unused Node polyfills

packages/remix-dev/compiler/css/compiler.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { builtinModules as nodeBuiltins } from "module";
22
import * as esbuild from "esbuild";
3-
import { nodeModulesPolyfillPlugin } from "esbuild-plugins-node-modules-polyfill";
43

54
import type { RemixConfig } from "../../config";
65
import { getAppDependencies } from "../../dependencies";
@@ -81,7 +80,6 @@ const createEsbuildConfig = (ctx: Context): esbuild.BuildOptions => {
8180
externalPlugin(/^https?:\/\//, { sideEffects: false }),
8281
mdxPlugin(ctx),
8382
emptyModulesPlugin(ctx, /\.server(\.[jt]sx?)?$/),
84-
nodeModulesPolyfillPlugin(),
8583
externalPlugin(/^node:.*/, { sideEffects: false }),
8684
],
8785
supported: {

0 commit comments

Comments
 (0)