-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Turn on Babel helpers
#5093
Turn on Babel helpers
#5093
Changes from all commits
775387a
ca2777f
b86f9bd
937d786
b74852a
3cdbbfe
3dbc5f8
2b06e8b
8ef839d
55a605b
071aa4f
82c82f8
a404acc
5bb2ee2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,8 +146,8 @@ PORT=3001 \ | |
nohup yarn start &>$tmp_server_log & | ||
grep -q 'You can now view' <(tail -f $tmp_server_log) | ||
|
||
# Before running Mocha, specify that it should use our preset | ||
# TODO: this is very hacky and we should find some other solution | ||
# We haven't ejected yet which means there's no `babel` key | ||
# in package.json yet | ||
echo '{"presets":["react-app"]}' > .babelrc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we just put it in our jest integration config or something? Why does it have to be at the root? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I dunno what's best, but during eject we add it to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just mean that in this case we only need it for integration test itself. So it's unrelated to our app and I'd like it to stay unrelated (if that makes sense) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense. We'll figure something out. |
||
|
||
# Test "development" environment | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, shouldn't default be false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the non-dependency version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah it's for app code. Hmm.
Would it break these instructions?
https://reactjs.org/docs/add-react-to-a-website.html#run-jsx-preprocessor
If so I think it should still be off by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/facebook/create-react-app/pull/5093/files#diff-e4eb38a3161bed144100754a3e97763dR26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right but I don't want this to break non-commonjs usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe we should have a separate entry point for "standalone" usage.