Skip to content

Commit

Permalink
fix: add inline comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetersen27 committed Apr 20, 2021
1 parent f44ed60 commit 9c567d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/plugins/importAnalysisBuild.ts
Expand Up @@ -268,6 +268,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
// preload when there are actual other deps.
deps.size > 1
? `[${[...deps]
// replace leading slashes to ensure a relative path. See https://github.com/vitejs/vite/pull/3061
.map((d) => JSON.stringify(d.replace(/^\//, './')))
.join(',')}]`
: `void 0`
Expand Down

0 comments on commit 9c567d3

Please sign in to comment.