Skip to content

Commit

Permalink
fix: bad JSX transform (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner authored Dec 14, 2024
1 parent 7ebf0fa commit c9d018e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion esbuild/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ export const examples = {
},
bundle: true,
minify: true,
jsx: 'automatic',
}
1 change: 0 additions & 1 deletion packages/react-dnd-preview/src/__tests__/Preview.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {render, screen} from '@testing-library/react'
// FIXME: esbuild-jest is struggling in this file because of jest.mock (I think), so we need:
// - a special React import
// - @babel/preset-typescript installed (and set in a tiny babel.config.json)
import * as React from 'react'
import {useContext} from 'react'

import {MockDragMonitor} from '@mocks/mocks'
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": "esnext",
"moduleResolution": "node",
"lib": ["dom", "dom.iterable", "esnext"],
"jsx": "preserve",
"jsx": "react-jsx",
"strict": true,
"allowJs": false,
"allowSyntheticDefaultImports": true,
Expand Down

0 comments on commit c9d018e

Please sign in to comment.