Skip to content

Commit 6f1e744

Browse files
authored
Update css.ts
1 parent ae06721 commit 6f1e744

File tree

1 file changed

+2
-1
lines changed
  • packages/vite/src/node/plugins

1 file changed

+2
-1
lines changed

packages/vite/src/node/plugins/css.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3463,7 +3463,8 @@ export function resolveLibCssFilename(
34633463
}
34643464

34653465
const packageJson = findNearestPackageData(root, packageCache)?.data
3466-
const name = (packageJson && packageJson.name) ? getPkgName(packageJson.name) : undefined
3466+
const name =
3467+
packageJson && packageJson.name ? getPkgName(packageJson.name) : undefined
34673468

34683469
if (!name)
34693470
throw new Error(

0 commit comments

Comments
 (0)