Open tsmaeder opened 9 months ago
@sdirix, @msujew , @JonasHelming and @tsmaeder had a discussion about this and here's a couple of results:
Overall, we decided moving to ESM is a mid-term project that needs more consideration before implementation.
@tsmaeder Now that VS Code's source code is almost completely ESM (see https://github.com/microsoft/vscode/issues/226260), has anything on that last post changed? Can we still consume everything as is?
I've prototyped consuming the esm build of VS Code and that seems to work with a couple of webpack magic. As for points 1 and 2 above, I don't think anything has changed.
Feature Description:
Currently, Theia is published to npm as a bunch of CommonJS modules. This works fine, but might start to have disadvantages in the future:
export
keyword to use the CJS export conventionrequire
function. Webpack can alleviate this problem, unless the modules use "top level async" functionality.