Skip to content

Commit ebd447e

Browse files
committed
externalize node_modules via regex
1 parent 23bf02d commit ebd447e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"db0": "^0.3.4",
6464
"h3": "2.0.1-rc.5",
6565
"jiti": "^2.6.1",
66-
"nf3": "^0.1.10",
66+
"nf3": "^0.1.11",
6767
"ofetch": "^2.0.0-alpha.3",
6868
"ohash": "^2.0.11",
6969
"oxc-minify": "^0.97.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/plugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function baseBuildPlugins(nitro: Nitro, base: BaseBuildConfig) {
131131
defu(nitro.options.externals, {
132132
outDir: nitro.options.output.serverDir,
133133
moduleDirectories: nitro.options.nodeModulesDirs,
134-
external: nitro.options.nodeModulesDirs,
134+
external: [...nitro.options.nodeModulesDirs, /node_modules/],
135135
inline: [...base.noExternal],
136136
traceOptions: {
137137
base: "/",

0 commit comments

Comments
 (0)