Skip to content

Commit 83902f0

Browse files
committed
Updates node modules directory configuration for edge bundler
Switches the edge bundler configuration from `--node-modules-dir=false` to `--node-modules-dir=manual` across multiple bundle formats
1 parent e479993 commit 83902f0

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

packages/config/tests/api/snapshots/tests.js.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,9 +2402,3 @@ Generated by [AVA](https://avajs.dev).
24022402
},␊
24032403
"token": "test"␊
24042404
}`
2405-
2406-
## Integrations are not returned if failed to fetch integrations
2407-
2408-
> Snapshot 1
2409-
2410-
'Failed retrieving extensions for site test: Unexpected status code 500 from fetching extensions. Double-check your login status with \'netlify status\' or contact support with details of your error.'
-12 Bytes
Binary file not shown.

packages/edge-bundler/node/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const getFunctionConfig = async ({
112112
`--allow-write=${collector.path}`,
113113
`--import-map=${importMap.toDataURL()}`,
114114
'--no-config',
115-
'--node-modules-dir=false',
115+
'--node-modules-dir=manual',
116116
'--quiet',
117117
extractorPath,
118118
pathToFileURL(functionPath).href,

packages/edge-bundler/node/formats/eszip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const bundle = async ({
5858
importMapData,
5959
vendorDirectory,
6060
}
61-
const flags = ['--allow-all', '--no-config', '--node-modules-dir=false', `--import-map=${bundlerImportMap}`]
61+
const flags = ['--allow-all', '--no-config', '--node-modules-dir=manual', `--import-map=${bundlerImportMap}`]
6262

6363
if (!debug) {
6464
flags.push('--quiet')

packages/edge-bundler/node/formats/tarball.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const bundle = async ({
8888
'--quiet',
8989
'--code-splitting',
9090
'--allow-import',
91-
'--node-modules-dir=false',
91+
'--node-modules-dir=manual',
9292
'--outdir',
9393
bundleDir.path,
9494
...functions.map((func) => func.path),

0 commit comments

Comments
 (0)