Skip to content

Commit 761d318

Browse files
committed
progress
1 parent 1f6dd9a commit 761d318

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

sdk/src/vite/createDirectiveLookupPlugin.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export const ${config.exportName} = {
236236
}
237237
238238
return `
239-
"${file}": () => import("/@id/${dummyPath}").then(m => m.default["${file}"]),
239+
"${file}": () => import("${barrelPath}").then(m => m.default["${file}"]),
240240
`;
241241
} else {
242242
return `

sdk/src/vite/runEsbuildScan.mts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
// @ts-ignore
22
import esbuild, { OnLoadArgs, OnResolveArgs, PluginBuild } from "esbuild";
33

4-
import {
5-
Alias,
6-
ConfigEnv,
7-
Environment,
8-
ResolvedConfig,
9-
normalizePath,
10-
} from "vite";
4+
import { Alias, ResolvedConfig, normalizePath } from "vite";
115
import fsp from "node:fs/promises";
126
import { hasDirective } from "./hasDirective.mjs";
137
import path from "node:path";

0 commit comments

Comments
 (0)