From 4bb9c36aab222cb76face175f5a3b6012d075f5b Mon Sep 17 00:00:00 2001 From: Ethan Freestone Date: Wed, 13 Aug 2025 15:00:26 +0100 Subject: [PATCH] build: Change jsx configuration to `react-jsx` to avoid unnecessary `import React from 'react'` at the top of all `.tsx` files We should also look into changing moduleResolution, as `node` appears to be an alias for node10, designed for use with versions of Node <= 10 However changing this ALSO requires a change to the `module` configuration, and changes there seemed to brick ui-mosaic-settings, so I have left alone for now --- webpack/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack/tsconfig.json b/webpack/tsconfig.json index 9d3be5c..7967f84 100644 --- a/webpack/tsconfig.json +++ b/webpack/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "noImplicitAny": true, "esModuleInterop": true, - "jsx": "react", + "jsx": "react-jsx", "lib": ["esnext", "dom"], "module": "esnext", "moduleResolution": "node",