You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constesbuild=require('esbuild');esbuild.build({stdin: {contents: 'export { unzipSync } from "node_modules/fflate";',},bundle: true,platform: 'neutral',});
Note this doesn't crash for from "fflate";from "./node_modules/fflate"; or any even from "node_modules" and from "node_modules/doesntexist". It only crashes when there's a a node_module path that exists on disk and the platform=neutral.
Also there's nothing wrong with fflate - I don't mean to pick on that package it's just the one I happened to poke at right now.
The text was updated successfully, but these errors were encountered:
Full reproduction from scratch:
This also happens in JS version:
Note this doesn't crash for
from "fflate";
from "./node_modules/fflate";
or any evenfrom "node_modules"
andfrom "node_modules/doesntexist"
. It only crashes when there's a a node_module path that exists on disk and theplatform=neutral
.Also there's nothing wrong with fflate - I don't mean to pick on that package it's just the one I happened to poke at right now.
The text was updated successfully, but these errors were encountered: