We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ee44b7 commit 1f6dd9aCopy full SHA for 1f6dd9a
sdk/src/vite/runEsbuildScan.mts
@@ -46,7 +46,6 @@ function createEsbuildScanPlugin({
46
find instanceof RegExp ? find : new RegExp(`^${find}(\\/.*)?$`);
47
if (findPattern.test(args.path)) {
48
const newPath = args.path.replace(findPattern, replacement);
49
- log("Alias matched: %s -> %s", args.path, newPath);
50
return build.resolve(newPath, {
51
importer: args.importer,
52
resolveDir: args.resolveDir,
@@ -57,7 +56,7 @@ function createEsbuildScanPlugin({
57
56
return null;
58
});
59
60
- build.onLoad({ filter: /\.[jt]sx?$/ }, async (args: OnLoadArgs) => {
+ build.onLoad({ filter: /\.(m|c)?[jt]sx?$/ }, async (args: OnLoadArgs) => {
61
if (
62
!args.path.startsWith("/") ||
63
args.path.includes("virtual:") ||
0 commit comments