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
About package object-inspect which has browser config in package.json.
{
"browser": {
"./util.inspect.js": false
},
}
When use bundler will correctly return empty in bundler, but in plugin resolve api that return path liked node_modules/.pnpm/object-inspect@1.12.0/node_modules/object-inspect/util.inspect.
In this case, I use the resolve result to load file but failed.
From developer‘s point of view, need to solve browser module false case by self, or just ignore load fails.
What is expected
In enhanced-resolve, this case with object-inspect return path as false, that easily to decide and understand.
May esbuild do the same return?
Case
About package
object-inspect
which has browser config in package.json.When use bundler will correctly return empty in bundler, but in plugin resolve api that return path liked
node_modules/.pnpm/object-inspect@1.12.0/node_modules/object-inspect/util.inspect
.In this case, I use the resolve result to load file but failed.
From developer‘s point of view, need to solve browser module false case by self, or just ignore load fails.
What is expected
In
enhanced-resolve
, this case withobject-inspect
return path asfalse
, that easily to decide and understand.May esbuild do the same return?
Other Information
esbuild version: 0.14.23
Relative PR: #1881
The text was updated successfully, but these errors were encountered: