From bc07145ea13fe29c5ff91a29b4e6609d9dff3d12 Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Tue, 7 Nov 2023 12:49:37 -0500 Subject: [PATCH] update the plateform to support more imports --- src/bundler/esbuild_bundler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundler/esbuild_bundler.ts b/src/bundler/esbuild_bundler.ts index 33d9f18..c147268 100644 --- a/src/bundler/esbuild_bundler.ts +++ b/src/bundler/esbuild_bundler.ts @@ -15,7 +15,7 @@ export const EsbuildBundler = { // esbuild configuration options https://esbuild.github.io/api/#overview const result = await esbuild.build({ entryPoints: [options.entrypoint], - platform: "neutral", + platform: "browser", target: "deno1", // TODO: the versions should come from the user defined input format: "esm", // esm format stands for "ECMAScript module" bundle: true, // inline any imported dependencies into the file itself