summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/cjs_local_global_decls
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-08-25 20:24:18 -0400
committerGitHub <noreply@github.com>2022-08-25 20:24:18 -0400
commit376665d1154501660e7b20f760a0482509cff8b0 (patch)
tree0a979722c66f8ede48f1dff21c8ceb335521a94a /cli/tests/testdata/npm/cjs_local_global_decls
parent0fe590bbcbf270b50abd8d73db1c5e0be69591f1 (diff)
fix: avoid global declaration collisions in cjs (#15608)
* Use a default stack size * 2 in debug for Windows because swc using so much stack size. We should look into this more later though.
Diffstat (limited to 'cli/tests/testdata/npm/cjs_local_global_decls')
-rw-r--r--cli/tests/testdata/npm/cjs_local_global_decls/main.out3
-rw-r--r--cli/tests/testdata/npm/cjs_local_global_decls/main.ts1
2 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/cjs_local_global_decls/main.out b/cli/tests/testdata/npm/cjs_local_global_decls/main.out
new file mode 100644
index 000000000..f9331e2e5
--- /dev/null
+++ b/cli/tests/testdata/npm/cjs_local_global_decls/main.out
@@ -0,0 +1,3 @@
+Download http://localhost:4545/npm/registry/@denotest/cjs-local-global-decls
+Download http://localhost:4545/npm/registry/@denotest/cjs-local-global-decls/1.0.0.tgz
+Loaded.
diff --git a/cli/tests/testdata/npm/cjs_local_global_decls/main.ts b/cli/tests/testdata/npm/cjs_local_global_decls/main.ts
new file mode 100644
index 000000000..04074057b
--- /dev/null
+++ b/cli/tests/testdata/npm/cjs_local_global_decls/main.ts
@@ -0,0 +1 @@
+import "npm:@denotest/cjs-local-global-decls@1.0.0";