You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
When I use @babel/plugin-transform-runtime and @babel/runtime, Array.from cannot parse correctly:
[!] (babel plugin) SyntaxError: /Users/xxx/node_modules/@babel/runtime/core-js/array/from.js: Support for the experimental syntax 'exportDefaultFrom' isn't currently enabled (6:8):
4 | var from = require$$0;
5 |
> 6 | export default from;
| ^
7 | export { from as __moduleExports };
Add @babel/plugin-proposal-export-default-from (https://git.io/vb4yH) to the 'plugins' section of your Babel config to enable transformation.
The array/from.js will transform to export default from.
The text was updated successfully, but these errors were encountered:
When I use
@babel/plugin-transform-runtime
and@babel/runtime
,Array.from
cannot parse correctly:The
array/from.js
will transform toexport default from
.The text was updated successfully, but these errors were encountered: