File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @vanilla-extract/vite-plugin ' : patch
3+ ---
4+
5+ Add Vite 5 to peer dependencies
Original file line number Diff line number Diff line change 2424 "vite" : " npm:vite@^2.7.0"
2525 },
2626 "peerDependencies" : {
27- "vite" : " ^2.2.3 || ^3.0.0 || ^4.0.3"
27+ "vite" : " ^2.2.3 || ^3.0.0 || ^4.0.3 || ^5.0.0 "
2828 }
2929}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 CompileOptions ,
1313 transform ,
1414} from '@vanilla-extract/integration' ;
15- import { PostCSSConfigResult , resolvePostcssConfig } from './postcss' ;
15+ import { type PostCSSConfigResult , resolvePostcssConfig } from './postcss' ;
1616
1717const styleUpdateEvent = ( fileId : string ) =>
1818 `vanilla-extract-style-update:${ fileId } ` ;
Original file line number Diff line number Diff line change 1+ import type postcssrc from 'postcss-load-config' ;
12import type { ResolvedConfig } from 'vite' ;
2- import type { ProcessOptions , Plugin } from 'postcss' ;
33
4- export interface PostCSSConfigResult {
5- options : ProcessOptions ;
6- plugins : Plugin [ ] ;
7- }
4+ export type PostCSSConfigResult = Pick < postcssrc . Result , 'options' | 'plugins' > ;
85
96// Mostly copied from vite's implementation
107// https://github.com/vitejs/vite/blob/efec70f816b80e55b64255b32a5f120e1cf4e4be/packages/vite/src/node/plugins/css.ts
@@ -34,7 +31,6 @@ export const resolvePostcssConfig = async (
3431
3532 return {
3633 options : postCssConfig . options ,
37- // @ts -expect-error - The postcssrc options don't agree with real postcss, but it should be ok
3834 plugins : postCssConfig . plugins ,
3935 } ;
4036 } catch ( e : any ) {
You can’t perform that action at this time.
0 commit comments