-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"unocss/vite" resolved to an ESM file. #61
Comments
解决: // vite.config.ts
export default async () => {
const UnoCSS = (await import('unocss/vite')).default
return defineConfig({
plugins: [
UnoCSS(),
],
})
} 若想保持配置不变,请把 |
我们是否应该更新一下 README?🤔 |
我昨天想更的,但不知道怎么写才最好 你如果得空的话,可以更新一下 ❤ |
我把vite.config.ts 文件名改为了 vite.config.mts 现在可以了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node : 18.19.0
uniapp : 3.0.0-4010420240430001
unipp + vue3+ts 的cli
The text was updated successfully, but these errors were encountered: