From 1753ee86203f33e556832c4ecbbc1614cc396756 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 16 Jun 2023 01:06:49 +0200 Subject: [PATCH] fix: remove duplicated esbuild imports (#1302) This somehow snuck in during the src/build/ refactor. --- src/build/deps.ts | 2 +- src/server/deps.ts | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/build/deps.ts b/src/build/deps.ts index c3508ead..3f6c8666 100644 --- a/src/build/deps.ts +++ b/src/build/deps.ts @@ -6,7 +6,7 @@ export { export { escape as regexpEscape } from "https://deno.land/std@0.190.0/regexp/escape.ts"; // -- esbuild -- -// @deno-types="https://deno.land/x/esbuild@v0.17.11/mod.d.ts" +// @deno-types="https://deno.land/x/esbuild@v0.17.19/mod.d.ts" import * as esbuildWasm from "https://deno.land/x/esbuild@v0.17.19/wasm.js"; import * as esbuildNative from "https://deno.land/x/esbuild@v0.17.19/mod.js"; // @ts-ignore trust me diff --git a/src/server/deps.ts b/src/server/deps.ts index 9a2bbd3e..27aace72 100644 --- a/src/server/deps.ts +++ b/src/server/deps.ts @@ -23,16 +23,3 @@ export { export { toHashString } from "https://deno.land/std@0.190.0/crypto/to_hash_string.ts"; export { escape } from "https://deno.land/std@0.190.0/regexp/escape.ts"; export * as JSONC from "https://deno.land/std@0.190.0/jsonc/mod.ts"; - -// -- esbuild -- -// @deno-types="https://deno.land/x/esbuild@v0.17.11/mod.d.ts" -import * as esbuildWasm from "https://deno.land/x/esbuild@v0.17.11/wasm.js"; -import * as esbuildNative from "https://deno.land/x/esbuild@v0.17.11/mod.js"; -// @ts-ignore trust me -// deno-lint-ignore no-deprecated-deno-api -const esbuild: typeof esbuildWasm = Deno.run === undefined - ? esbuildWasm - : esbuildNative; -export { esbuild, esbuildWasm as esbuildTypes }; - -export { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.7.0/mod.ts";