Rollup cannot do tree shaking on components generated via react-output-target. #222
Labels
needs: reply
The issue needs a response from the reporter.
package: react
@stencil/react-output-target package
Rollup does not support /@PURE/ annotation for function right now.
As a result, tree shaking does not work on such a file.
But if the generated components are divided into files, 1 component per 1 file, then tree shaking works properly.
You can change the generator so that there is only one function in one file /@PURE/createReactComponent?
The text was updated successfully, but these errors were encountered: