-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Hello,
these two cases push an additional / breaking import statement.
unplugin-fonts/src/loaders/fontsource.ts
Lines 66 to 71 in a7e66d5
| source.push(`import '@fontsource-variable/${name}/standard.css';`) | |
| continue | |
| } | |
| // If the selected axes is not within standard, return full | |
| source.push(`import '@fontsource-variable/${name}/full.css';`) |
The build step then breaks:
transforming (1) index.htmlUnable to resolve `@import "import '@fontsource-variable/open-sans/standard.css';"` from /undebug
✓ 4 modules transformed.
x Build failed in 84ms
error during build:
Error: [vite:css] [postcss] ENOENT: no such file or directory, open 'import '@fontsource-variable/open-sans/standard.css';'
file: unfonts.css:undefined:NaN
The logic for variable is also odd, it does not matter if opsz is true or false, simply being there has unintended side effects.
felixdenoix
Metadata
Metadata
Assignees
Labels
No labels