Skip to content

Commit

Permalink
Remove babel-plugin-module-resolve, not needed for Expo 50 (#31)
Browse files Browse the repository at this point in the history
Our test suite began (rightly) failing when it tests that thoughtbelt
can generate an app using the latest Expo. Expo 50 removed
babel-plugin-module-resolver ([issue
thread](expo/expo#25923)) and now supports
type aliases out of the box without it. thoughtbelt was specifying this
plugin in `babel.config.js` for type aliases but was not installing it
in the `package.json` for new apps. This PR removes the config for this
plugin in `babel.config.js`.

If tests pass, I'm going to go ahead and merge, since the build is
currently broken.
  • Loading branch information
Stephen Hanson authored Jan 26, 2024
1 parent f536334 commit 4b3edcc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions templates/scaffold/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,5 @@ module.exports = function (api) {

return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
alias: {
// This needs to be mirrored in tsconfig.json
src: './src',
assets: './assets',
},
},
],
],
};
};

0 comments on commit 4b3edcc

Please sign in to comment.