-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat(Vanilla Extract): as a future replacement of jss #561
Changes from 1 commit
f841a5e
f75a192
0a3b84c
0823022
1ab5c3e
36754f6
9302619
68e3282
dd14992
f630d09
18ff594
e6e8d15
5cd60b9
e28b19f
b703449
ac1ad82
8b57721
bf0df66
813a9f5
3f6bf11
4959f58
3696296
97870fa
0c561d1
60e034a
e364e14
22c8f14
b42cb36
61df2f6
37a9cb6
505b7ab
ce58c96
eaac9cf
b5afb04
9100938
2d91fd1
242586a
af44f26
443f28c
17e8571
24b5c75
0e9df6f
4afd417
a95d1d2
ab8e52b
690f2ca
ce6ced7
b44bab2
941ed0e
9bb76ba
b85347c
039381b
097ee7b
1185096
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,14 @@ import {vanillaExtractPlugin} from '@vanilla-extract/vite-plugin'; | |
import noBundlePlugin from 'vite-plugin-no-bundle'; | ||
|
||
export default defineConfig({ | ||
plugins: [react(), vanillaExtractPlugin(), noBundlePlugin()], | ||
plugins: [ | ||
react(), | ||
vanillaExtractPlugin(), | ||
noBundlePlugin({ | ||
// Change .css.js files to something else so that they don't get re-processed by consumer apps using vanilla extract too | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is because VE process all files ended in |
||
fileNames: ({name}) => `${name.replace(/\.css$/, '.css.vanilla')}.js`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Vanilla Extract Next plugin applies to node_modules too, so it tries to re-process mistica files (which are already compiled by mistica build) and result in errors. With this change, we make those files invisible for the Next plugin in apps using mistica and VE (zeus, for example). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. perhaps a better name would be |
||
}), | ||
], | ||
publicDir: false, | ||
build: { | ||
lib: { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Export vars (skin colors) to be usable by apps using Vanilla Extract