From 9686a8803e311d532c37fe919e0684feca91a04f Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Mon, 22 Apr 2024 17:07:36 +0200 Subject: feat: add jsx precompile skip element option (#23457) This PR wires up a new `jsxPrecompileSkipElements` option in `compilerOptions` that can be used to exempt a list of elements from being precompiled with the `precompile` JSX transform. --- cli/tsc/99_main_compiler.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/tsc/99_main_compiler.js') diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index c2c9a88d5..59fa75d77 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -958,6 +958,9 @@ delete Object.prototype.__proto__; if (config.jsx === "precompile") { config.jsx = "react-jsx"; } + if (config.jsxPrecompileSkipElements) { + delete config.jsxPrecompileSkipElements; + } return config; } -- cgit v1.2.3