Skip to content

Commit

Permalink
feat: using module-resolver plugin to import config.
Browse files Browse the repository at this point in the history
  • Loading branch information
KageRyo committed May 18, 2024
1 parent 8bf5b22 commit df0bcc7
Show file tree
Hide file tree
Showing 6 changed files with 435 additions and 22 deletions.
14 changes: 14 additions & 0 deletions WaterMirror/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,19 @@ module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
root: ['.'],
extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'],
alias: {
'@': './src',
'constants': './src',
'##': './src',
},
},
]
]
};
};
Loading

0 comments on commit df0bcc7

Please sign in to comment.