Skip to content

Commit

Permalink
chore: tweak comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Mar 3, 2024
1 parent 0550307 commit 5caea89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importAnalysisBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
// using regex over this list to workaround the fact that module preload wasn't
// configurable.
const assetsURL = renderBuiltUrl
? // If `experimental.renderBuiltUrl`is used the dependencies are already resolved.
? // If `experimental.renderBuiltUrl` is used, the dependencies are already resolved.
// To avoid the need for `new URL(dep, import.meta.url)`, a helper `__vitePreloadRelativeDep` is
// used to resolve from relative paths which can be minimized.
`function(dep, importerUrl) { return dep[0] === '.' ? new URL(dep, importerUrl).href : dep }`
Expand Down

0 comments on commit 5caea89

Please sign in to comment.