Skip to content

Commit 09c90d5

Browse files
committed
setup module-resolver
1 parent 73a2511 commit 09c90d5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

babel.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
module.exports = {
22
presets: ['module:metro-react-native-babel-preset'],
3+
plugins: [
4+
[
5+
'module-resolver',
6+
{
7+
root: ['./'],
8+
alias: {
9+
'^~/(.+)': './src/\\1',
10+
},
11+
extensions: ['.ios.js', '.android.js', '.js', '.jsx', '.json', '.tsx', '.ts', '.native.js'],
12+
},
13+
],
14+
['react-native-reanimated/plugin'],
15+
],
316
};

0 commit comments

Comments
 (0)