Skip to content

Commit

Permalink
Next.js: Fix Fast Refresh config for SWC mode
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Nov 27, 2023
1 parent 443f1b6 commit 6b22f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/src/swc/loader.ts
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ export const configureSWCLoader = async (
rootDir: dir,
pagesDir: `${dir}/pages`,
appDir: `${dir}/apps`,
hasReactRefresh: applyFastRefresh(options),
hasReactRefresh: await applyFastRefresh(options),
nextConfig,
supportedBrowsers: require('next/dist/build/utils').getSupportedBrowsers(
dir,

0 comments on commit 6b22f0e

Please sign in to comment.