Skip to content

Commit

Permalink
Moved babel config plugins to test env
Browse files Browse the repository at this point in the history
  • Loading branch information
AlixH committed Nov 17, 2021
1 parent 8b17072 commit 00b3965
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-class-properties", { loose: true }],
],
env: {
testing: {
plugins: [
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-class-properties", { loose: true }],
],
presets: [
[ "@babel/plugin-transform-runtime", { targets: { node: "current" }}],
],
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
"import-sort": "npx import-sort-cli --write '{src,__tests__,types}/**/*.ts{,x}' *.ts{,x}",
"check:i18n": "cross-env TS_NODE_FILES=true ts-node-dev --project tsconfig-i18n.json --files test/I18nChecker.ts",
"react-native:install": "npm install --force && npm clean-install && cd ios && pod install",
"clean:project": "rm -rf node_modules && cd android && ./gradlew clean && cd ../ios && xcodebuild clean && rm -rf ~/Library/Developer/Xcode/DerivedData && cd .. && npm start -- --reset-cache "
"clean:android": "cd android && ./gradlew clean && cd ..",
"clean:ios": "cd ios && xcodebuild clean && rm -rf ~/Library/Developer/Xcode/DerivedData && rm -rf Pods/ && pod install && cd ..",
"clean:project": "npm run clean:android && npm run clean:ios"
},
"importSort": {
".js, .jsx, .es6, .es, .mjs": {
Expand Down

0 comments on commit 00b3965

Please sign in to comment.