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
fix: [#1851] Moves URL resolution to after checking if module preloading is enabled to prevent URL errors to be thrown when unresolvable (#1851)
Currently, when using relative paths in `<link rel="modulepreload" href="/dist/..." />`, we will get a stable error from `new URL`.
I moved the URL creation below, similar to `preloadResource`. In addition, there is no actual point in creating a `URL` if the `disableJavaScriptFileLoading` or `disableJavaScriptEvaluation` options are enabled.
Co-authored-by: David Ortner <david@ortner.se>
0 commit comments