I'm learning allowSyntheticDefaultImports
and esModuleInterop
in TypeScript config, and I just realized the existence of ESM old syntax like the following.
(我正在TypeScript配置中学习allowSyntheticDefaultImports
和esModuleInterop
,并且我刚刚意识到ESM旧语法的存在,如下所示。)
import foo = require("foo");
export bar = xxx;
When/Who did start to support these syntax?
(什么时候/谁开始支持这些语法?)
or Can I get some references describing them?(或者我可以得到一些描述它们的参考文献吗?)
ask by Shiroyu translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…