To build using "jsx": "preserve" you need your module configuration in webpack.config.js to look something like below. The key is having all the necessary loaders in the use array, in reverse order (as mentioned in the article), not having a separate rule for ts-loader as in the article. Otherwise they will not chain as expected. See webpack docs.
To build using
"jsx": "preserve"
you need yourmodule
configuration inwebpack.config.js
to look something like below. The key is having all the necessary loaders in theuse
array, in reverse order (as mentioned in the article), not having a separate rule forts-loader
as in the article. Otherwise they will not chain as expected. See webpack docs.HTH
Thank you @mnemotic