You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(@angular-devkit/build-angular): update Vite client code loading for v5
Vite v5 updated the client code's error dialog text. This requires that the
text replacement code also be updated to remove unactionable information from
the error dialog.
letcontents=originalContents.replace('You can also disable this overlay by setting','');
289
-
contents=contents.replace(
288
+
constfirstUpdate=originalContents.replace('You can also disable this overlay by setting','');
289
+
assert(originalContents!==firstUpdate,'Failed to update Vite client error overlay text. (1)');
290
+
291
+
constsecondUpdate=firstUpdate.replace(
290
292
// eslint-disable-next-line max-len
291
-
'<code part="config-option-name">server.hmr.overlay</code> to <code part="config-option-value">false</code> in <code part="config-file-name">vite.config.js.</code>',
293
+
'<code part="config-option-name">server.hmr.overlay</code> to <code part="config-option-value">false</code> in <code part="config-file-name">${hmrConfigName}.</code>',
292
294
'',
293
295
);
296
+
assert(firstUpdate!==secondUpdate,'Failed to update Vite client error overlay text. (2)');
294
297
295
-
assert(originalContents!==contents,'Failed to update Vite client error overlay text.');
0 commit comments