Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精读《export 默认/命名导出的区别》 #342

Closed
ascoders opened this issue Jul 31, 2021 · 4 comments
Closed

精读《export 默认/命名导出的区别》 #342

ascoders opened this issue Jul 31, 2021 · 4 comments

Comments

@ascoders
Copy link
Owner

ascoders commented Jul 31, 2021

本周精读的文章是:export-default-thing-vs-thing-as-default

加深你对 import、export 到底是引用还是瞬时值的理解,同时发现原来还有一些特殊语法糖存在作用域提升的效果。


精读《export 默认/命名导出的区别》

@ascoders ascoders changed the title 精读《export 默认导出与命名导出的区别》 精读《export 默认/命名导出的区别》 Jul 31, 2021
@ascoders ascoders closed this as completed Aug 2, 2021
@atian25
Copy link

atian25 commented Aug 2, 2021

妈呀。。。 这么多坑。

我的结论是,这属于 JS the bad part 的新增内容,我们需要 eslint-disable-esm-export-primitive

@Asarua
Copy link

Asarua commented Aug 2, 2021

这个厉害了

@CaiBirdZ
Copy link

CaiBirdZ commented Aug 2, 2021

受教了

@waitingsong
Copy link

尽量避免使用默认导出吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants