Fix esbuild target

This commit is contained in:
Alex Gleason committed 2025-09-11 16:49:18 -05:00
1 parent 154adfd83f
commit 5f619c769a
2 files changed
+2 -3

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@ export async function buildProject(
): Promise<Record<string, Uint8Array>> {
const esbuild = await getEsbuild();
const { fs, projectPath, domParser, target } = options;
const { fs, projectPath, domParser, target = "esnext" } = options;
const indexHtmlText = await fs.readFile(
`${projectPath}/index.html`,
@@ -43,7 +43,7 @@ export async function buildProject(
bundle: true,
write: false,
format: "esm",
target: target ?? "esnext",
target,
outdir: "/",
jsx: "automatic",
plugins: [
-1
View File
@@ -92,7 +92,6 @@ export function ProjectView() {
fs: browserFS,
projectPath: `/projects/${project.id}`,
domParser: new DOMParser(),
target: "esnext",
});
console.log(dist);