Skip to content

Commit 8ed5192

Browse files
committed
refactor: tweak extensions in babel config
1 parent d5533f6 commit 8ed5192

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/create-react-native-library/templates/example/example/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
[
88
'module-resolver',
99
{
10-
extensions: ['.js', '.ts', '.json', '.jsx', '.tsx'],
10+
extensions: ['.tsx', '.ts', '.js', '.json'],
1111
alias: {
1212
[pak.name]: path.join(__dirname, '..', pak.source),
1313
},

packages/create-react-native-library/templates/expo-library/example/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function (api) {
1010
[
1111
'module-resolver',
1212
{
13-
extensions: ['.js', '.ts', '.json', '.jsx', '.tsx'],
13+
extensions: ['.tsx', '.ts', '.js', '.json'],
1414
alias: {
1515
// For development, we want to alias the library to the source
1616
[pak.name]: path.join(__dirname, '..', pak.source),

0 commit comments

Comments
 (0)