fix: lint error

This commit is contained in:
ClarkXia 2025-08-21 11:17:03 +08:00
parent 603408d234
commit f0fffe3821
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ const cssModulesPlugin = (options: PluginOptions): Plugin => {
const isRelative = args.path.startsWith('./') || args.path.startsWith('../');
const isAbsolute = path.isAbsolute(args.path);
const resolvePath = (!isRelative && !isAbsolute) ? resolveId(args.path, options.alias) : '';
const absolutePath = path.resolve(resolveDir, resolvePath ? resolvePath : args.path);
const absolutePath = path.resolve(resolveDir, resolvePath || args.path);
// Generate css and put it in the `STYLE_HANDLER_NAMESPACE` namespace to handle css file
return {
path: absolutePath,