Skip to content
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

rollup build => Unresolved dependencies => virtual:windi.css #265

Closed
luoyi58624 opened this issue Dec 16, 2021 · 1 comment
Closed

rollup build => Unresolved dependencies => virtual:windi.css #265

luoyi58624 opened this issue Dec 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@luoyi58624
Copy link

when i use rollup-plugin-windicss build, why hint Unresolved dependencies? I already import @rollup/plugin-node-resolve,what I need to do?

image

`
import { defineConfig } from 'rollup'
import clear from 'rollup-plugin-clear'
import resolve from '@rollup/plugin-node-resolve'
import vue from 'rollup-plugin-vue'
import esbuild from 'rollup-plugin-esbuild'
import css from 'rollup-plugin-css-only'
import WindiCSS from 'rollup-plugin-windicss'

export default defineConfig({
input: './src/index.ts',
output: [
{
dir: 'dist',
name: 'index',
format: 'esm',
sourcemap: false
}
],
external: ['vue'],
plugins: [
clear({
targets: ['dist'],
watch: true
}),
resolve(),
WindiCSS(),
css({ output: 'index.css' }),
vue(),
esbuild()
]
})
`

@luoyi58624 luoyi58624 added the bug Something isn't working label Dec 16, 2021
@luoyi58624
Copy link
Author

sorry, WindiCSS() should be ...WindiCSS()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant