Skip to content

Instantly share code, notes, and snippets.

@naffiq
Created March 14, 2018 18:10
Show Gist options
  • Save naffiq/bd920e6f4ee5e98167f0ed2428dd7fa2 to your computer and use it in GitHub Desktop.
Save naffiq/bd920e6f4ee5e98167f0ed2428dd7fa2 to your computer and use it in GitHub Desktop.
Babel config for Laravel react app
{
"presets": [
"env",
"stage-0",
"react"
],
"plugins": ["transform-object-rest-spread"]
}
@naffiq
Copy link
Author

naffiq commented Mar 14, 2018

Install stage-0 preset with npm/yarn

npm install --save-dev babel-preset-stage-0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment