Replies: 1 comment 3 replies
-
I believe the analyzer should actually still report You can confirm by building your app with and without the config enabled. Just comment it out and compare the built file sizes. Also, the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a React project that I'd like to convert to Preact to save on the bundle size.
I followed this recommendation, adding the following elements to my code:
Change the
package.json
:...and add
config-overrides.js
:Naturally, I also installed
preact-compat
andpreact
.When building my app and viewing the components using the Webpack bundle analyzer, I see that
react
andreact-dom
are still in my bundle.What am I doing wrong with my implementation?
Beta Was this translation helpful? Give feedback.
All reactions