Skip to content

Commit 6de4ae5

Browse files
committed
fix: hai-x suggestion
1 parent ddb54d3 commit 6de4ae5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/next/src/compiled/webpack/bundle5.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/next/taskfile.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,13 @@ export async function ncc_webpack_bundle5(task, opts) {
21632163
packageName: 'webpack',
21642164
bundleName: 'webpack',
21652165
customEmit(path) {
2166-
if (path.endsWith('.runtime.js')) return `'./${basename(path)}'`
2166+
if (
2167+
/HotModuleReplacement\.runtime|JavascriptHotModuleReplacement\.runtime/.test(
2168+
path
2169+
)
2170+
) {
2171+
return `'./${basename(path)}'`
2172+
}
21672173
},
21682174
externals: bundleExternals,
21692175
target: 'es5',

0 commit comments

Comments
 (0)