Skip to content

Commit e9cfe69

Browse files
committed
chore: fix types
1 parent 7dcb6a0 commit e9cfe69

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

packages/plugin-react-oxc/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"dist"
1212
],
1313
"type": "module",
14+
"types": "./dist/index.d.mts",
1415
"exports": "./dist/index.mjs",
1516
"scripts": {
1617
"dev": "unbuild --stub",

playground/compiler-react-18/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default defineConfig(({ command }) => {
77
server: { port: 8901 /* Should be unique */ },
88
plugins: [
99
react({
10+
// @ts-expect-error babel plugins are not supported
1011
babel: {
1112
plugins: [['babel-plugin-react-compiler', { target: '18' }]],
1213
},

playground/compiler/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default defineConfig(({ command }) => {
1010

1111
return {
1212
server: { port: 8900 /* Should be unique */ },
13+
// @ts-expect-error babel plugins are not supported
1314
plugins: [react({ babel: { plugins: babelPlugins } })],
1415
}
1516
})

playground/react-classic/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const config: UserConfig = {
55
server: { port: 8903 /* Should be unique */ },
66
plugins: [
77
react({
8+
// @ts-expect-error classic jsx runtime is not supported
89
jsxRuntime: 'classic',
910
}),
1011
],

playground/react-emotion/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default defineConfig({
66
plugins: [
77
react({
88
jsxImportSource: '@emotion/react',
9+
// @ts-expect-error babel plugins are not supported
910
babel: {
1011
plugins: ['@emotion/babel-plugin'],
1112
},

playground/react-sourcemap/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const config: UserConfig = {
55
server: { port: 8906 /* Should be unique */ },
66
plugins: [
77
react({
8+
// @ts-expect-error classic runtime is not supported
89
jsxRuntime: process.env.USE_CLASSIC === '1' ? 'classic' : 'automatic',
910
}),
1011
],

0 commit comments

Comments
 (0)