Skip to content

The default Babel preset for Fooxly projects using React.

License

Notifications You must be signed in to change notification settings

Fooxly/babel-preset-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fooxly Babel Preset for React

The default Babel preset for Fooxly projects using React.

npm version downloads ci status

🚀  Powered By

❤️  Support us

About 40% of your donation goes to one of the charities we support. For further information or questions please visit our website or contact us via charity@fooxly.com.

BuyMeACoffee    Patreon    PayPal


☁️  Installation

using npm

npm install --save-dev @fooxly/babel-preset-react

using yarn

yarn add -D @fooxly/babel-preset-react

📐  Usage

using .babelrc

{
  "presets": ["@fooxly/babel-preset-react"]
}

using package.json

...
"babel": {
  "presets": ["@fooxly/babel-preset-react"]
}
...

using React Native

Make sure to check out the README of the Metro Babel preset in order to use the latest available React Native technologies.

You must include the noEnv: true option and require this preset after the Metro one, in order for this preset to work with React Native.

{
  "presets": [
    "module:metro-react-native-babel-preset",
    ["@fooxly/babel-preset-react", { "noEnv": true }]
  ]
}

About

The default Babel preset for Fooxly projects using React.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •