Skip to content

Commit 0890a5d

Browse files
committed
fix hmr errors
1 parent b44a54d commit 0890a5d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

templates/example/example/babel.config.js

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

templates/expo-library/example/babel.config.js

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

0 commit comments

Comments
 (0)