ioBI
Denoβ€’3y agoβ€’
10 replies
ioB

Running esbuild with esbuild_deno_loader

I've spent probably four or five hours trying to track down this issue, to the point where I actually started tweaking and rebuilding old versions of esbuild to try and reproduce this bug without the help of a plugin. I have no idea. I want to find what version this started happening in to file a bug report (because I think it's an esbuild issue), but I haven't had the time to do that.

Here is the reproc code (it only errors with wasm):
import * as esbuild from "https://deno.land/x/esbuild@v0.15.10/wasm.js";
import { denoPlugin } from "https://deno.land/x/esbuild_deno_loader@0.6.0/mod.ts";

const result = await esbuild.build({
  plugins: [denoPlugin()],
  entryPoints: {
    "test": new URL("./link-to-any-deno-file.ts", import.meta.url).href
  },
  outdir: ".",
  bundle: true,
  write: false,
  format: "esm",
});

esbuild.stop();


Running this results in:
error: Cannot read file "Users/iob/Desktop/test/link-to-any-deno-file.ts": not implemented on js


This is blocking any upgrade of the esbuild dependency for fresh.
Was this page helpful?