Build: Fix esbuildPluginReplaceModule (#12530)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-03-25 12:35:08 +08:00
1 parent 11649270f6
commit 6128c5c4e4
1 file changed
+1 -1
@@ -2,7 +2,7 @@ import fs from "node:fs/promises";
const DEFAULT_ON_RESOLVE_CONCEPTS = { filter: /./, namespace: "file" };
const DEFAULT_ON_LOAD_CONCEPTS = {
filter: /.(?:js|json|mjs|cjs)$/,
filter: /\.(?:js|json|mjs|cjs)$/,
namespace: "file",
};