Open JustinGrote opened 8 months ago
This would be very helpful since https://github.com/microsoft/vscode/pull/210466 is now live.
any updates on this one?
I think this is also related: https://github.com/microsoft/vscode/pull/212727
any idea when this is gonna be implemented? It seems like there is no possibility of importing esm modules in commonjs without using a dynamic import.. which again is not supported by vscode
@v4lentin1879 the PR @wataBottl referenced looks interesting. I don't think it will get merged but it seems to be possible.
@alexander-heimbuch okay at least something :D Do you have any idea how to do this? Using dynamic imports only works in debug mode.
@v4lentin1879 it looks like it does require a change in the extension loader in core, without it I don't think it possible (or I couldn't manage to get it working).
@alexdima are you tracking any work on this?
Is the blocker the lack of stability of require(esm)
or vm.Modules
?
Now that VSCode is on Electron 28 which has ESM support, the loaders need to be updated similarly to allow for extensions to be written in ESM https://github.com/microsoft/vscode/issues/130367#issuecomment-1970816333