diff --git a/esbuild/config.js b/esbuild/config.js index 3e77965..12af70c 100644 --- a/esbuild/config.js +++ b/esbuild/config.js @@ -7,5 +7,4 @@ export const examples = { }, bundle: true, minify: true, - jsx: 'automatic', } diff --git a/packages/react-dnd-preview/src/__tests__/Preview.test.tsx b/packages/react-dnd-preview/src/__tests__/Preview.test.tsx index 6609d28..5b09959 100644 --- a/packages/react-dnd-preview/src/__tests__/Preview.test.tsx +++ b/packages/react-dnd-preview/src/__tests__/Preview.test.tsx @@ -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' diff --git a/tsconfig.json b/tsconfig.json index ea04347..4e505a3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "module": "esnext", "moduleResolution": "node", "lib": ["dom", "dom.iterable", "esnext"], - "jsx": "preserve", + "jsx": "react-jsx", "strict": true, "allowJs": false, "allowSyntheticDefaultImports": true,