-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: reuse resolved
reactRefreshEntryPath
(#10)
- Loading branch information
1 parent
5b34bc0
commit 325f610
Showing
3 changed files
with
21 additions
and
18 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
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,18 @@ | ||
import path from 'node:path'; | ||
|
||
export const reactRefreshPath = require.resolve('../client/reactRefresh.js'); | ||
export const reactRefreshEntryPath = require.resolve( | ||
'../client/reactRefreshEntry.js', | ||
); | ||
export const refreshUtilsPath = require.resolve('../client/refreshUtils.js'); | ||
export const refreshRuntimeDirPath = path.dirname( | ||
require.resolve('react-refresh', { | ||
paths: [reactRefreshPath], | ||
}), | ||
); | ||
export const runtimePaths = [ | ||
reactRefreshEntryPath, | ||
reactRefreshPath, | ||
refreshUtilsPath, | ||
refreshRuntimeDirPath, | ||
]; |
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