Skip to content

Commit

Permalink
Use new JSX runtime (#3256)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored May 8, 2024
1 parent c64c321 commit 6d51a85
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
targets: '> 1%, not dead, not ie 11, not op_mini all',
},
],
'@babel/preset-react',
['@babel/preset-react', { runtime: 'automatic' }],
'@babel/preset-typescript',
],
}
2 changes: 1 addition & 1 deletion example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
"jsx": "react-jsx"
},
"include": ["./src", "./typings/*.d.ts", "../packages/*"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eslint:fix": "yarn run eslint --fix",
"test": "jest --coverage",
"test:watch": "jest --watchAll",
"typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react",
"typecheck": "tsc --noEmit --emitDeclarationOnly false --strict",
"validate": "preconstruct validate",
"release": "yarn build && yarn changeset publish",
"vers": "yarn changeset version",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
"jsx": "react",
"jsx": "react-jsx",
"pretty": true,
"strict": true,
"skipLibCheck": true,
Expand Down

0 comments on commit 6d51a85

Please sign in to comment.