From 560ad0331bf99a2564f53201cd086ff902901bfe Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 9 Sep 2024 17:35:41 -0400 Subject: fix(node/byonm): do not accidentally resolve bare node built-ins (#25543) This was accidentally enabled in byonm, but it requires the `--unstable-bare-node-builtins` flag. Closes #25358 --- tests/testdata/run/node_prefix_missing/config.json | 1 - tests/testdata/run/node_prefix_missing/feature_enabled.out | 2 -- tests/testdata/run/node_prefix_missing/import_map.json | 1 - tests/testdata/run/node_prefix_missing/main.ts | 3 --- tests/testdata/run/node_prefix_missing/main.ts.out | 3 --- 5 files changed, 10 deletions(-) delete mode 100644 tests/testdata/run/node_prefix_missing/config.json delete mode 100644 tests/testdata/run/node_prefix_missing/feature_enabled.out delete mode 100644 tests/testdata/run/node_prefix_missing/import_map.json delete mode 100644 tests/testdata/run/node_prefix_missing/main.ts delete mode 100644 tests/testdata/run/node_prefix_missing/main.ts.out (limited to 'tests/testdata/run/node_prefix_missing') diff --git a/tests/testdata/run/node_prefix_missing/config.json b/tests/testdata/run/node_prefix_missing/config.json deleted file mode 100644 index 67480c3d4..000000000 --- a/tests/testdata/run/node_prefix_missing/config.json +++ /dev/null @@ -1 +0,0 @@ -{ "unstable": ["bare-node-builtins"] } diff --git a/tests/testdata/run/node_prefix_missing/feature_enabled.out b/tests/testdata/run/node_prefix_missing/feature_enabled.out deleted file mode 100644 index c577fa92c..000000000 --- a/tests/testdata/run/node_prefix_missing/feature_enabled.out +++ /dev/null @@ -1,2 +0,0 @@ -[WILDCARD]Warning Resolving "fs" as "node:fs" at file:///[WILDCARD]/tests/testdata/run/node_prefix_missing/main.ts:1:16. If you want to use a built-in Node module, add a "node:" prefix. -[Function: writeFile] diff --git a/tests/testdata/run/node_prefix_missing/import_map.json b/tests/testdata/run/node_prefix_missing/import_map.json deleted file mode 100644 index 3add7d009..000000000 --- a/tests/testdata/run/node_prefix_missing/import_map.json +++ /dev/null @@ -1 +0,0 @@ -{ "imports": {} } diff --git a/tests/testdata/run/node_prefix_missing/main.ts b/tests/testdata/run/node_prefix_missing/main.ts deleted file mode 100644 index c5c1885a2..000000000 --- a/tests/testdata/run/node_prefix_missing/main.ts +++ /dev/null @@ -1,3 +0,0 @@ -import fs from "fs"; - -console.log(fs.writeFile); diff --git a/tests/testdata/run/node_prefix_missing/main.ts.out b/tests/testdata/run/node_prefix_missing/main.ts.out deleted file mode 100644 index 48b4e37e2..000000000 --- a/tests/testdata/run/node_prefix_missing/main.ts.out +++ /dev/null @@ -1,3 +0,0 @@ -error: Relative import path "fs" not prefixed with / or ./ or ../ - hint: If you want to use a built-in Node module, add a "node:" prefix (ex. "node:fs"). - at file:///[WILDCARD]/main.ts:1:16 -- cgit v1.2.3