plugin-babel generating require()
calls
#1922
Answered
by
FredKSchott
winkler1
asked this question in
Troubleshooting
-
Trying to get SP going on my React, Flow project. Have this to handle JSX and strip Flow:
It's no longer getting confused by Flow types, but the code has require/_interopRequireDefault. Any way to have it output ESM? Is this caused by an old version of babel? (babel-core:6.26.0) |
Beta Was this translation helpful? Give feedback.
Answered by
FredKSchott
Dec 11, 2020
Replies: 1 comment 1 reply
-
I think it's probably "env": you'll want to set this option to false. https://babeljs.io/docs/en/babel-preset-env#modules Please lmk if that fixes it, we should add it to a Babel guide. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
winkler1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it's probably "env": you'll want to set this option to false. https://babeljs.io/docs/en/babel-preset-env#modules
Please lmk if that fixes it, we should add it to a Babel guide.