Skip to content

Commit

Permalink
Merge pull request #24991 from storybookjs/valentin/fix-fast-refresh-…
Browse files Browse the repository at this point in the history
…for-swc-nextjs

Next.js: Fix Fast Refresh config for SWC mode
  • Loading branch information
valentinpalkovic authored Nov 27, 2023
2 parents 443f1b6 + 6b22f0e commit f883290
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
Expand Up @@ -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,
Expand Down

0 comments on commit f883290

Please sign in to comment.