File tree Expand file tree Collapse file tree 13 files changed +377
-146
lines changed
graphiql-plugin-code-exporter Expand file tree Collapse file tree 13 files changed +377
-146
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphiql/plugin-code-exporter ' : minor
3
+ ' @graphiql/plugin-explorer ' : minor
4
+ ' @graphiql/react ' : minor
5
+ ' graphiql ' : minor
6
+ ---
7
+
8
+ update ` vite ` and related dependencies
Original file line number Diff line number Diff line change 42
42
"@graphiql/react" : " ^0.29.0" ,
43
43
"@vitejs/plugin-react" : " ^4.4.1" ,
44
44
"graphql" : " ^16.9.0" ,
45
- "postcss-nesting" : " ^10.1.7" ,
46
45
"react" : " ^19.1.0" ,
47
46
"react-dom" : " ^19.1.0" ,
48
47
"typescript" : " ^4.6.3" ,
49
- "vite" : " ^5.4.18 "
48
+ "vite" : " ^6.3.3 "
50
49
}
51
50
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ const IS_UMD = process.env.UMD === 'true';
6
6
7
7
export default defineConfig ( {
8
8
plugins : [ react ( { jsxRuntime : 'classic' } ) ] ,
9
+ css : {
10
+ transformer : 'lightningcss' ,
11
+ } ,
9
12
build : {
10
13
minify : IS_UMD ? 'esbuild' : false ,
11
14
// avoid clean cjs/es builds
@@ -16,6 +19,7 @@ export default defineConfig({
16
19
`${ filePath } .${ format === 'umd' ? 'umd.' : '' } js` ,
17
20
name : 'GraphiQLPluginCodeExporter' ,
18
21
formats : IS_UMD ? [ 'umd' ] : [ 'es' ] ,
22
+ cssFileName : 'style' ,
19
23
} ,
20
24
rollupOptions : {
21
25
external : [
Original file line number Diff line number Diff line change 44
44
"react" : " ^19.1.0" ,
45
45
"react-dom" : " ^19.1.0" ,
46
46
"typescript" : " ^4.6.3" ,
47
- "vite" : " ^5.4.18 " ,
48
- "vite-plugin-svgr" : " ^4.2 .0"
47
+ "vite" : " ^6.3.3 " ,
48
+ "vite-plugin-svgr" : " ^4.3 .0"
49
49
}
50
50
}
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ export default defineConfig({
15
15
} ,
16
16
} ) ,
17
17
] ,
18
+ css : {
19
+ transformer : 'lightningcss' ,
20
+ } ,
18
21
build : {
19
22
minify : IS_UMD ? 'esbuild' : false ,
20
23
// avoid clean cjs/es builds
@@ -25,6 +28,7 @@ export default defineConfig({
25
28
`${ filePath } .${ format === 'umd' ? 'umd.' : '' } js` ,
26
29
name : 'GraphiQLPluginExplorer' ,
27
30
formats : IS_UMD ? [ 'umd' ] : [ 'es' ] ,
31
+ cssFileName : 'style' ,
28
32
} ,
29
33
rollupOptions : {
30
34
external : [
Original file line number Diff line number Diff line change 74
74
"@types/markdown-it" : " ^14.1.2" ,
75
75
"@types/get-value" : " ^3.0.5" ,
76
76
"@types/set-value" : " ^4.0.1" ,
77
- "@vitejs/plugin-react" : " ^4.3 .1" ,
77
+ "@vitejs/plugin-react" : " ^4.4 .1" ,
78
78
"graphql" : " ^16.9.0" ,
79
- "postcss-nesting" : " ^10.1.7" ,
80
79
"react" : " ^19.1.0" ,
81
80
"react-dom" : " ^19.1.0" ,
82
81
"typescript" : " ^4.6.3" ,
83
- "vite" : " ^5.4.18 " ,
84
- "vite-plugin-svgr" : " ^4.2 .0" ,
82
+ "vite" : " ^6.3.3 " ,
83
+ "vite-plugin-svgr" : " ^4.3 .0" ,
85
84
"vite-plugin-dts" : " ^4.5.3"
86
85
}
87
86
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
import { defineConfig , PluginOption } from 'vite' ;
3
3
import react from '@vitejs/plugin-react' ;
4
4
import svgr from 'vite-plugin-svgr' ;
5
- // @ts -expect-error -- no types
6
- import postCssNestingPlugin from 'postcss-nesting' ;
7
5
import type { PluginOptions as ReactCompilerConfig } from 'babel-plugin-react-compiler' ;
8
6
import packageJSON from './package.json' assert { type : 'json' } ;
9
7
import dts from 'vite-plugin-dts' ;
@@ -65,9 +63,7 @@ export const plugins: PluginOption[] = [
65
63
export default defineConfig ( {
66
64
plugins,
67
65
css : {
68
- postcss : {
69
- plugins : [ postCssNestingPlugin ( ) ] ,
70
- } ,
66
+ transformer : 'lightningcss' ,
71
67
} ,
72
68
build : {
73
69
minify : false ,
@@ -79,6 +75,7 @@ export default defineConfig({
79
75
return `${ filePath } .js` ;
80
76
} ,
81
77
formats : [ 'es' ] ,
78
+ cssFileName : 'style' ,
82
79
} ,
83
80
rollupOptions : {
84
81
external : [
Original file line number Diff line number Diff line change 58
58
"react-dom" : " ^18 || ^19"
59
59
},
60
60
"devDependencies" : {
61
+ "lightningcss" : " ^1.29.3" ,
61
62
"babel-plugin-react-compiler" : " 19.1.0-rc.1" ,
62
- "vite-plugin-dts" : " ^4.3.0" ,
63
- "vite" : " ^5.3.6" ,
64
- "postcss-lightningcss" : " ^1.0.1" ,
65
- "@vitejs/plugin-react" : " ^4.3.1" ,
63
+ "vite-plugin-dts" : " ^4.5.3" ,
64
+ "vite" : " ^6.3.3" ,
65
+ "@vitejs/plugin-react" : " ^4.4.1" ,
66
66
"@graphiql/toolkit" : " ^0.11.2" ,
67
67
"@testing-library/jest-dom" : " ^6.6.3" ,
68
68
"@testing-library/react" : " ^16.1.0" ,
72
72
"graphql" : " ^16.9.0" ,
73
73
"graphql-http" : " ^1.22.1" ,
74
74
"graphql-subscriptions" : " ^2.0.0" ,
75
- "postcss" : " 8.4.31" ,
76
- "postcss-import" : " 15.1.0" ,
77
75
"react" : " ^19.1.0" ,
78
76
"react-dom" : " ^19.1.0" ,
79
77
"start-server-and-test" : " ^1.10.11" ,
You can’t perform that action at this time.
0 commit comments