1 make sure all JSX code is compiled
2 exclude 'react', 'react-dom', 'react-redux' in the bundled file, just use that in the host project.
3 change the 'package.json' file in the published package to make the package can be used directly as es module and do not need extra compile process for project based on webpack.
1 make sure all JSX code is compiled 2 exclude 'react', 'react-dom', 'react-redux' in the bundled file, just use that in the host project. 3 change the 'package.json' file in the published package to make the package can be used directly as es module and do not need extra compile process for project based on webpack.