Skip to content

Commit

Permalink
fix: import aliases for web
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktorrudzki committed Apr 7, 2024
1 parent aa2645c commit 71a4e69
Show file tree
Hide file tree
Showing 3 changed files with 1,483 additions and 1,469 deletions.
13 changes: 13 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,18 @@ module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
alias: {
'@': './src',
style: './style.ts',
public: './public',
},
},
],
],
};
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@testing-library/react-native": "^12.4.3",
"@types/jest": "^29.5.11",
"@types/react": "~18.2.14",
"babel-plugin-module-resolver": "^5.0.0",
"eslint": "^8.54.0",
"eslint-config-universe": "^12.0.0",
"eslint-plugin-jest": "^27.6.0",
Expand Down
Loading

0 comments on commit 71a4e69

Please sign in to comment.