We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Babel 处理过的代码到底是什么样子的?当 Presets 遇到了 transfrom-runtime…… (lmk123)
自 Babel 6 以后,Babel 将语法转换功能全都拆分成了一个个小模块。这些模块让人眼花缭乱,但官方贴心的提供了 Presets,用的最多的大概就是 ES2015 preset 了吧。再加上大多数项目为了减小项目体积,所以差不多都用了 transform-runtime。...
transform-runtime 会自动应用 polyfill,即便没有使用 babel-polyfill (lmk123)
先简述一下 babel-polyfill 与 transform-runtime 是做什么的。目前浏览器对 ES2015 语法的支持都不太好,所以当我们需要使用 Promise、Set、Map 等功能时就需要 babel-polyfill 来提供。...
Promise
Set
Map
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Babel 处理过的代码到底是什么样子的?当 Presets 遇到了 transfrom-runtime…… (lmk123)
transform-runtime 会自动应用 polyfill,即便没有使用 babel-polyfill (lmk123)
The text was updated successfully, but these errors were encountered: