最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typescript - Building VS Code extension with ES modules by coding the extension activator as CommonJS - Stack Overflow

programmeradmin0浏览0评论

This is my first VS Code extension and first code written in TypeScript. While I know support of ES Module extensions is still unsupported, I decided to try creating the extension loader as a CommonJS module and load the ES modules of the extension dynamically using import().

Setting Value
package.json.type "module"
tsconfig.jsonpilerOptions.module "Node16"
tsconfig.jsonpilerOptions.target "ES2022"

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论