mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-25 21:55:42 +08:00
Turn on Babel helpers (#5093)
* Turn on helpers and test importing something with async/await works * Compiling babel runtime breaks itself * Add helpers option to babel plugin with defaults * Make helpers off by default and on in our configuration * Hit eject and e2e * meh * copy'n'paste * change again * Turn off helpers by default in /prod, /dev, /test * oops * Spread undefined * Use object assign not object spread * Put preset in template since it's needed * Fix e2e tests
This commit is contained in:
@@ -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
|
||||
|
||||
# Test "development" environment
|
||||
|
||||
Reference in New Issue
Block a user