Skip to content

Commit f627a49

Browse files
committed
news: ESM for extensions
1 parent 41384c7 commit f627a49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

release-notes/v1_100.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,13 @@ Last iteration, we added a [proposed API](https://github.com/microsoft/vscode/bl
294294

295295
Check out [this API proposal issue](https://github.com/microsoft/vscode/issues/245104) to see a usage example and to stay up to date with the status of this API.
296296

297+
### ESM Support for Extensions
298+
299+
The NodeJS extension host now supports extensions that use JavaScript-modules (ESM). All it needs is the `"type": "module"`-entry in your extension's `package.json`-file. With that the JavaScript code can use `import`- and `export`-statements, including the special module `import('vscode')`. Find a sample here: https://github.com/jrieken/vscode-esm-sample-extension.
300+
301+
Please note that ESM support isn't for the web worker extension host yet. There are some technical challenges that need to overcome first and we'll post updates on https://github.com/microsoft/vscode/issues/130367
302+
303+
297304
## Engineering
298305

299306

0 commit comments

Comments
 (0)