-
Notifications
You must be signed in to change notification settings - Fork 61
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
vite: Add plugin for Vite #33
Comments
Hey, yes we plan to have more integrations with bundlers and frameworks. Having Vite plugin is something that we want. The implementation should be similar to the existing Webpack loader: call Babel and reuse bundler's module resolution. I haven't checked Vite docs yet and don't know what APIs are exposed, but it should it be doable. |
Yes, it's doable! |
The closest example/reference for us is griffel/packages/webpack-loader/src/webpackLoader.ts Lines 69 to 80 in b4c7acc
|
Okay, it seems that |
FYI: I've made some progress on it and it almost works. The problem is that in griffel/packages/webpack-loader/src/webpackLoader.ts Lines 92 to 93 in b4c7acc
I will think how we can workaround this 🤔 |
I will check when I have some time 🙂 |
There is some work in Linaria that could help with that, callstack/linaria#1001. Looking forward to it 🐱 |
Just wanted to bump on this issue since the linaria pr linked seems to have been merged. |
@SahilTara indeed, but we will need to move to Linaria v4 first (#184). |
Any update on the vite plugin? |
As wyw-in-js is out, I can rollout the plugin finally 🎉 I reworked original PR (#41) and it can be shipped once the issue will be fixed (Anber/wyw-in-js#27). As @Anber will be offline for some time, I expect that we will be able to ship it after NY. |
Hello 👋
This project seems very promising! Do you have plan to support Vite with a custom plugin?
Documentation: https://vitejs.dev/guide/api-plugin.html
vanilla-extract
plugin (for reference): https://github.com/seek-oss/vanilla-extract/tree/master/packages/vite-pluginThe text was updated successfully, but these errors were encountered: