aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins/js/BundlerPlugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/builtins/js/BundlerPlugin.js')
-rw-r--r--src/bun.js/builtins/js/BundlerPlugin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/builtins/js/BundlerPlugin.js b/src/bun.js/builtins/js/BundlerPlugin.js
index 4daa2dcbb..8e587794b 100644
--- a/src/bun.js/builtins/js/BundlerPlugin.js
+++ b/src/bun.js/builtins/js/BundlerPlugin.js
@@ -196,7 +196,7 @@ function runSetupFunction(setup) {
@throwTypeError("namespace must be a string");
}
- if (namespace?.length ?? 0) {
+ if ((namespace?.length ?? 0) === 0) {
namespace = "file";
}