Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 13, 2023
1 parent 029e8e3 commit 5ebb56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtimes/js/src/JSRuntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ function getRelativePathExpr(
): string {
let relativePath = relativeBundlePath(from, to, {leadingDotSlash: false});
let res = JSON.stringify(relativePath);
if (options.hmrOptions) {
if (options.hmrOptions && from.env.outputFormat !== 'commonjs') {
res += ' + "?" + Date.now()';
}

Expand Down

0 comments on commit 5ebb56b

Please sign in to comment.