Skip to content

Commit

Permalink
add transformIgnorePatterns for ES6 assets #27
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchellesap committed Feb 25, 2020
1 parent ce158a0 commit 5444cd4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ["babel-preset-expo"]
presets: ["babel-preset-expo"],
plugins: ["@babel/plugin-transform-modules-commonjs"]
};
};
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"test": "jest"
},
"jest": {
"preset": "jest-expo"
"preset": "jest-expo",
"transformIgnorePatterns": [
"node_modules/(?!(react-native|react-navigation-stack|react-native-screens|react-navigation|react-native-.*)/.*)",
"screens/.*"
]
},
"dependencies": {
"expo": "~36.0.0",
Expand All @@ -21,12 +25,13 @@
"react-native-web": "^0.12.1",
"react-navigation": "^4.1.1",
"react-navigation-stack": "^2.1.1",
"react-native-screens": "2.0.0-alpha.12",
"react-native-screens": "2.0.0-alpha.20",
"react-native-gesture-handler": "~1.5.0",
"@react-native-community/masked-view": "0.1.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-transform-modules-commonjs": "^7.8.3",
"babel-preset-expo": "~8.0.0",
"jest-expo": "^36.0.1",
"react-test-renderer": "^16.12.0"
Expand Down

0 comments on commit 5444cd4

Please sign in to comment.