Skip to content

Commit 168c364

Browse files
committed
Merge branch 'v4' into react19
2 parents ec81b20 + 0b434a9 commit 168c364

File tree

13 files changed

+377
-146
lines changed

13 files changed

+377
-146
lines changed

.changeset/late-trains-train.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

packages/graphiql-plugin-code-exporter/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@
4242
"@graphiql/react": "^0.29.0",
4343
"@vitejs/plugin-react": "^4.4.1",
4444
"graphql": "^16.9.0",
45-
"postcss-nesting": "^10.1.7",
4645
"react": "^19.1.0",
4746
"react-dom": "^19.1.0",
4847
"typescript": "^4.6.3",
49-
"vite": "^5.4.18"
48+
"vite": "^6.3.3"
5049
}
5150
}

packages/graphiql-plugin-code-exporter/postcss.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/graphiql-plugin-code-exporter/vite.config.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const IS_UMD = process.env.UMD === 'true';
66

77
export default defineConfig({
88
plugins: [react({ jsxRuntime: 'classic' })],
9+
css: {
10+
transformer: 'lightningcss',
11+
},
912
build: {
1013
minify: IS_UMD ? 'esbuild' : false,
1114
// avoid clean cjs/es builds
@@ -16,6 +19,7 @@ export default defineConfig({
1619
`${filePath}.${format === 'umd' ? 'umd.' : ''}js`,
1720
name: 'GraphiQLPluginCodeExporter',
1821
formats: IS_UMD ? ['umd'] : ['es'],
22+
cssFileName: 'style',
1923
},
2024
rollupOptions: {
2125
external: [

packages/graphiql-plugin-explorer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"react": "^19.1.0",
4545
"react-dom": "^19.1.0",
4646
"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"
4949
}
5050
}

packages/graphiql-plugin-explorer/vite.config.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export default defineConfig({
1515
},
1616
}),
1717
],
18+
css: {
19+
transformer: 'lightningcss',
20+
},
1821
build: {
1922
minify: IS_UMD ? 'esbuild' : false,
2023
// avoid clean cjs/es builds
@@ -25,6 +28,7 @@ export default defineConfig({
2528
`${filePath}.${format === 'umd' ? 'umd.' : ''}js`,
2629
name: 'GraphiQLPluginExplorer',
2730
formats: IS_UMD ? ['umd'] : ['es'],
31+
cssFileName: 'style',
2832
},
2933
rollupOptions: {
3034
external: [

packages/graphiql-react/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,13 @@
7474
"@types/markdown-it": "^14.1.2",
7575
"@types/get-value": "^3.0.5",
7676
"@types/set-value": "^4.0.1",
77-
"@vitejs/plugin-react": "^4.3.1",
77+
"@vitejs/plugin-react": "^4.4.1",
7878
"graphql": "^16.9.0",
79-
"postcss-nesting": "^10.1.7",
8079
"react": "^19.1.0",
8180
"react-dom": "^19.1.0",
8281
"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",
8584
"vite-plugin-dts": "^4.5.3"
8685
}
8786
}

packages/graphiql-react/postcss.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/graphiql-react/vite.config.mts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import { defineConfig, PluginOption } from 'vite';
33
import react from '@vitejs/plugin-react';
44
import svgr from 'vite-plugin-svgr';
5-
// @ts-expect-error -- no types
6-
import postCssNestingPlugin from 'postcss-nesting';
75
import type { PluginOptions as ReactCompilerConfig } from 'babel-plugin-react-compiler';
86
import packageJSON from './package.json' assert { type: 'json' };
97
import dts from 'vite-plugin-dts';
@@ -65,9 +63,7 @@ export const plugins: PluginOption[] = [
6563
export default defineConfig({
6664
plugins,
6765
css: {
68-
postcss: {
69-
plugins: [postCssNestingPlugin()],
70-
},
66+
transformer: 'lightningcss',
7167
},
7268
build: {
7369
minify: false,
@@ -79,6 +75,7 @@ export default defineConfig({
7975
return `${filePath}.js`;
8076
},
8177
formats: ['es'],
78+
cssFileName: 'style',
8279
},
8380
rollupOptions: {
8481
external: [

packages/graphiql/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
"react-dom": "^18 || ^19"
5959
},
6060
"devDependencies": {
61+
"lightningcss": "^1.29.3",
6162
"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",
6666
"@graphiql/toolkit": "^0.11.2",
6767
"@testing-library/jest-dom": "^6.6.3",
6868
"@testing-library/react": "^16.1.0",
@@ -72,8 +72,6 @@
7272
"graphql": "^16.9.0",
7373
"graphql-http": "^1.22.1",
7474
"graphql-subscriptions": "^2.0.0",
75-
"postcss": "8.4.31",
76-
"postcss-import": "15.1.0",
7775
"react": "^19.1.0",
7876
"react-dom": "^19.1.0",
7977
"start-server-and-test": "^1.10.11",

0 commit comments

Comments
 (0)