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
Tracing the imports, it looks like technically the import isn't really ambiguous. The source of TextDocument is in node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-languageserver-textdocument/lib/esm/main.js:
Even if this introduces certain ambiguity, it seems most other bundlers don't really care about it and can bundle it just fine (and the runtime also works just fine). In fact, it even loads properly over native browser ESM (via new Worker(..., { type: 'module' }) so at the very least I don't think esbuild should error out here.
The text was updated successfully, but these errors were encountered:
Thanks for the report. It does look like esbuild is handling this incorrectly. One of the exports that esbuild is flagging as a duplicate is supposed to be shadowing the other one. This is handled correctly if you import from the file directly but there's a bug when there are multiple levels of re-exports. I'll get this fixed.
Reproduction:
Tracing the imports, it looks like technically the import isn't really ambiguous. The source of
TextDocument
is innode_modules/monaco-editor/esm/vs/language/css/_deps/vscode-languageserver-textdocument/lib/esm/main.js
:Even if this introduces certain ambiguity, it seems most other bundlers don't really care about it and can bundle it just fine (and the runtime also works just fine). In fact, it even loads properly over native browser ESM (via
new Worker(..., { type: 'module' })
so at the very least I don't think esbuild should error out here.The text was updated successfully, but these errors were encountered: