Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
149 views
in Technique[技术] by (71.8m points)

javascript - ES模块旧语法(ES modules old syntax)

I'm learning allowSyntheticDefaultImports and esModuleInterop in TypeScript config, and I just realized the existence of ESM old syntax like the following.

(我正在TypeScript配置中学习allowSyntheticDefaultImportsesModuleInterop ,并且我刚刚意识到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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...