Skip to content

Commit 1f6dd9a

Browse files
committed
progress!
1 parent 2ee44b7 commit 1f6dd9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sdk/src/vite/runEsbuildScan.mts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ function createEsbuildScanPlugin({
4646
find instanceof RegExp ? find : new RegExp(`^${find}(\\/.*)?$`);
4747
if (findPattern.test(args.path)) {
4848
const newPath = args.path.replace(findPattern, replacement);
49-
log("Alias matched: %s -> %s", args.path, newPath);
5049
return build.resolve(newPath, {
5150
importer: args.importer,
5251
resolveDir: args.resolveDir,
@@ -57,7 +56,7 @@ function createEsbuildScanPlugin({
5756
return null;
5857
});
5958

60-
build.onLoad({ filter: /\.[jt]sx?$/ }, async (args: OnLoadArgs) => {
59+
build.onLoad({ filter: /\.(m|c)?[jt]sx?$/ }, async (args: OnLoadArgs) => {
6160
if (
6261
!args.path.startsWith("/") ||
6362
args.path.includes("virtual:") ||

0 commit comments

Comments
 (0)