Unverified Commit 4d2191d4 authored by Federico Zivolo's avatar Federico Zivolo Committed by GitHub
Browse files

feat: allow to configure jsx importSource option

This allows libraries such as https://github.com/welldone-software/why-did-you-render to work, also, it should allow to use React replacement libraries such as Preact.
1 merge request!10138feat: allow to configure jsx importSource option
Showing with 1 addition and 0 deletions
+1 -0
......@@ -97,6 +97,7 @@ module.exports = function (api, opts, env) {
// behavior for any plugins that require one.
...(opts.runtime !== 'automatic' ? { useBuiltIns: true } : {}),
runtime: opts.runtime || 'classic',
...(process.env.JSX_IMPORT_SOURCE ? { importSource: process.env.JSX_IMPORT_SOURCE } : {}),
},
],
isTypeScriptEnabled && [require('@babel/preset-typescript').default],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment