webcontainer-core
webcontainer-core copied to clipboard
types are broken in editor with `type: module`
Describe the bug
Install vuepress
with pnpm
Link to the blitz that caused the error
https://stackblitz.com/edit/vuepress-theme-hope?file=package.json,docs%2F.vuepress%2Fconfig.ts
Steps to reproduce
See the editor:
Expected behavior
Working, everything is fine in a local editor.
Parity with Local
- [X] I have run the project in my local machine and I could not reproduce the issue.
Screenshots
The vuepress package is a esm package, while the special thing is that it exports other esm package types directly:
And the defineUserConfig
is something that @vuepress/cli
exports.
Moreover, when I change the exports to vuepress/cli
(which is a sub export that re-export @vuepress/cli
),
Platform
- OS: [e.g. macOS, Windows, Linux]: Windows
- Browser: [e.g. Chrome, Safari, Firefox]: Chrome
- Version: [e.g. 91.1]: 125.0
Additional context
No response