mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Fix esbuild target
This commit is contained in:
2 files changed
+2
-3
No files matched your search
@@ -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: [
|
||||
|
||||
@@ -92,7 +92,6 @@ export function ProjectView() {
|
||||
fs: browserFS,
|
||||
projectPath: `/projects/${project.id}`,
|
||||
domParser: new DOMParser(),
|
||||
target: "esnext",
|
||||
});
|
||||
|
||||
console.log(dist);
|
||||
|
||||
Reference in new issue
Block a user