Helper _objectSpread is not imported when using transform runtime with helpers #10334
Labels
i: bug
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Current Behavior
A
__objectSpread
function is created locally, and not imported, with@babel/plugin-transform-runtime
andhelpers: true
.Input Code
https://github.com/csvn/object-spread-helper-issue-reproduction
Expected behavior/code
__objectSpread
should be imported when using@babel/plugin-transform-runtime
andhelpers: true
.Babel Configuration (.babelrc, package.json, cli command)
npm run start # or npx babel src--out-dir dist
Environment
Possible Solution
Additional context/Screenshots
The reproduction is a trimmed down version of our project, that is using Webpack. I noticed when creating a minimal reproduction project that the issue can be seen by simply using the
@babel/cli
.The text was updated successfully, but these errors were encountered: