mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-09 06:55:07 +00:00
style
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,9 +11,8 @@ export async function resolveImport(
|
||||
try {
|
||||
// @ts-ignore
|
||||
const resolved = import.meta.resolve(importPath, import.meta.url)
|
||||
if(resolved) return resolved;
|
||||
}
|
||||
catch {
|
||||
if (resolved) return resolved
|
||||
} catch {
|
||||
// If native resolution fails, fallback to manual resolution.
|
||||
}
|
||||
|
||||
|
||||
@@ -716,8 +716,7 @@ export function toAliasedImport(
|
||||
aliasKey === "cwd"
|
||||
? projectInfo.aliasPrefix?.startsWith("#")
|
||||
: config.aliases[aliasKey as keyof typeof config.aliases]?.startsWith("#")
|
||||
const keepExt =
|
||||
codeExts.includes(ext) && !isSubpathImport ? "" : ext
|
||||
const keepExt = codeExts.includes(ext) && !isSubpathImport ? "" : ext
|
||||
let noExt = rel.slice(0, rel.length - ext.length)
|
||||
|
||||
// 4️⃣ Collapse "/index" to its directory
|
||||
|
||||
Reference in New Issue
Block a user