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

This is my first VS Code extension and first code written in TypeScript. While I know support of ES Mod

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"

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745349277a4623728.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信