-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- now supports HMR - limitations - in node_modules/* modules are not supported HMR yet. - custom runtime module system by `swc-plugin-global-module` - https://github.com/leegeunhyeok/swc-plugin-global-module close #38
- Loading branch information
1 parent
a1eb801
commit 96f3356
Showing
60 changed files
with
1,629 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+3.82 KB
.yarn/cache/@types-react-refresh-npm-0.14.3-d201a15407-ff48c18f92.zip
Binary file not shown.
Binary file added
BIN
+1.39 MB
.yarn/cache/swc-plugin-global-module-npm-0.1.0-alpha.5-cd339b699a-10523c5464.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,9 @@ yarn-error.log | |
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
# @swc | ||
.swc | ||
|
||
# @react-native-esbuild | ||
.rne | ||
.swc | ||
|
Binary file removed
BIN
-8.29 MB
...v7_macos_aarch64_0.104.4/90b69c1e7164e0dc62ebf083a345c7d5b7b0450c10b6dada84547644da60c783
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,7 @@ exports.default = { | |
], | ||
}, | ||
}, | ||
experimental: { | ||
hmr: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import fs from 'node:fs'; | ||
import path from 'node:path'; | ||
|
||
export const getExternalFromPackageJson = (root: string): string[] => { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- allow any. | ||
const { dependencies = {} } = JSON.parse( | ||
fs.readFileSync(path.join(root, 'package.json'), 'utf-8'), | ||
); | ||
return [ | ||
'react/jsx-runtime', | ||
'@react-navigation/devtools', | ||
...Object.keys(dependencies as Record<string, string>), | ||
]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './async'; | ||
export * from './config'; | ||
export * from './fs'; | ||
export * from './internal'; |
Oops, something went wrong.
96f3356
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage report
❌ An unexpected error occurred. For more details, check console
Test suite run failed
Failed tests: 1/83. Failed suites: 1/10.
Report generated by 🧪jest coverage report action from 96f3356