Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
fix(boilerplate): replace .babelrc with babel.config.js - fixes #249 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaoelitiana authored and jamonholmgren committed Oct 7, 2019
1 parent 2029b25 commit 352cb79
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion boilerplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ async function install(context) {
// remove the __tests__ directory, App.js, and unnecessary config files that come with React Native
const filesToRemove = [
".babelrc",
"babel.config.js",
".buckconfig",
".eslintrc.js",
".prettierrc.js",
Expand Down Expand Up @@ -131,7 +132,7 @@ async function install(context) {
{ template: ".env.example", target: ".env" },
{ template: ".prettierignore", target: ".prettierignore" },
{ template: ".solidarity", target: ".solidarity" },
{ template: ".babelrc", target: ".babelrc" },
{ template: "babel.config.js", target: "babel.config.js" },
{ template: "react-native.config.js", target: "react-native.config.js" },
{ template: "tsconfig.json", target: "tsconfig.json" },
{ template: "app/app.tsx.ejs", target: "app/app.tsx" },
Expand Down
15 changes: 0 additions & 15 deletions boilerplate/.babelrc

This file was deleted.

15 changes: 15 additions & 0 deletions boilerplate/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
presets: ["module:metro-react-native-babel-preset", "module:react-native-dotenv"],
env: {
production: {}
},
plugins: [
[
"@babel/plugin-proposal-decorators",
{
legacy: true
}
],
["@babel/plugin-proposal-optional-catch-binding"]
]
}

0 comments on commit 352cb79

Please sign in to comment.