Skip to content

Commit 444bee2

Browse files
committed
fix: hai-x suggestion
1 parent 7929f45 commit 444bee2

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
@@ -2203,7 +2203,13 @@ export async function ncc_webpack_bundle5(task, opts) {
22032203
packageName: 'webpack',
22042204
bundleName: 'webpack',
22052205
customEmit(path) {
2206-
if (path.endsWith('.runtime.js')) return `'./${basename(path)}'`
2206+
if (
2207+
/HotModuleReplacement\.runtime|JavascriptHotModuleReplacement\.runtime/.test(
2208+
path
2209+
)
2210+
) {
2211+
return `'./${basename(path)}'`
2212+
}
22072213
},
22082214
externals: bundleExternals,
22092215
target: 'es5',

0 commit comments

Comments
 (0)