Skip to content

Commit

Permalink
chore(css): remove useless parameter (#13411)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Jun 3, 2023
1 parent 20b0cae commit 1197b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/css.ts
Expand Up @@ -517,7 +517,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
? getCssAssetDirname(cssAssetName)
: undefined

const toRelative = (filename: string, importer: string) => {
const toRelative = (filename: string) => {
// relative base + extracted CSS
const relativePath = path.posix.relative(cssAssetDirname!, filename)
return relativePath[0] === '.' ? relativePath : './' + relativePath
Expand Down

0 comments on commit 1197b24

Please sign in to comment.