aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/builtins/js')
-rw-r--r--src/bun.js/builtins/js/BundlerPlugin.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bun.js/builtins/js/BundlerPlugin.js b/src/bun.js/builtins/js/BundlerPlugin.js
index 70e6a97a5..7f8170eb2 100644
--- a/src/bun.js/builtins/js/BundlerPlugin.js
+++ b/src/bun.js/builtins/js/BundlerPlugin.js
@@ -60,7 +60,7 @@ function runOnResolvePlugins(
}
for (let [filter, callback] of results) {
- if (filtertest(inputPath)) {
+ if (filter.test(inputPath)) {
var result = callback({
path: inputPath,
importer,
@@ -116,6 +116,7 @@ function runOnResolvePlugins(
);
}
+
if (!external) {
if (userNamespace === "file") {
// TODO: Windows
@@ -126,6 +127,7 @@ function runOnResolvePlugins(
}
}
+
if (userNamespace === "dataurl") {
if (!path.startsWith("data:")) {
@throwTypeError(