-
Notifications
You must be signed in to change notification settings - Fork 57
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
Use require
instead of import
#207
Comments
I would say an option to choose between import and require is best. There are also cases where one would prefer to output import statements (e.g. for webpack) |
I agree with an option is best. |
@tnayuki, I know this was a long time ago, but have you managed to make a fix? Even when I add another plugin those damn imports flow-runtime generates are not transpiled for me and I get a crash of my RN app... |
@issuehunt has funded $40.00 to this issue.
|
@tnayuki you can : |
I just started to use flow-runtime & babel-plugin-flow-runtime, because these are very powerful packages.
This is a:
Which concerns:
What is the current behaviour?
Currently babel-plugin-flow-runtime generates code like this:
What is the expected behaviour?
My proposal is generating code like this:
If I can use flow-runtime & babel-plugin-flow-runtime without adding another plugin to transpile
import
, it becomes non-intrusive.Which package versions are you using?
IssueHunt Summary
Backers (Total: $40.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: