Skip to content

Commit

Permalink
Merge pull request #29048 from Chudesnov/patch-1
Browse files Browse the repository at this point in the history
Builder-vite: Replace .at() call with [] in codegen
  • Loading branch information
kasperpeulen authored Sep 24, 2024
2 parents 8333cde + d80402d commit f655698
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function generateModernIframeScriptCode(options: Options, projectRo
.map(
(previewAnnotation, index) =>
// Prefer the updated module from an HMR update, otherwise import the original module
`hmrPreviewAnnotationModules.at(${index}) ?? import('${previewAnnotation}')`
`hmrPreviewAnnotationModules[${index}] ?? import('${previewAnnotation}')`
)
.join(',\n')}])
return composeConfigs(configs);
Expand Down

0 comments on commit f655698

Please sign in to comment.