From 8fc117d00099a1bea6bf20e6a54f9ea65a490cf5 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 31 May 2023 19:04:38 +1000 Subject: [PATCH] chore: upgrade to `esbuild_deno_loader@0.7.0` (#1228) --- src/server/bundle.ts | 4 ++-- src/server/deps.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/server/bundle.ts b/src/server/bundle.ts index c11177b6..e39135bf 100644 --- a/src/server/bundle.ts +++ b/src/server/bundle.ts @@ -1,5 +1,5 @@ import { - denoPlugin, + denoPlugins, esbuild, esbuildTypes, escape, @@ -114,7 +114,7 @@ export class Bundler { platform: "neutral", plugins: [ buildIdPlugin(BUILD_ID), - denoPlugin({ importMapURL: this.#importMapURL }), + ...denoPlugins({ importMapURL: this.#importMapURL.href }), ], sourcemap: this.#dev ? "linked" : false, splitting: true, diff --git a/src/server/deps.ts b/src/server/deps.ts index b5765ba8..ea4a5b12 100644 --- a/src/server/deps.ts +++ b/src/server/deps.ts @@ -29,5 +29,4 @@ const esbuild: typeof esbuildWasm = Deno.run === undefined : esbuildNative; export { esbuild, esbuildWasm as esbuildTypes }; -// TODO(lino-levan): Replace with versioned import -export { denoPlugin } from "https://raw.githubusercontent.com/lucacasonato/esbuild_deno_loader/8031f71afa1bbcd3237a94b11f53a2e5c5c0e7bf/mod.ts"; +export { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.7.0/mod.ts";