Open michaelchen-cb opened 6 months ago
I’ll have to have a closer look when I’m back but your bundler or its setup is almost certainly at fault here, I’ve never even heard of this. It should only import code that’s been included through the entrypoint and it isn’t.
1. Read the FAQs 👇
2. Describe the bug
We recently bumped our app(commonjs) from v6.5.1 to v10.18.0 and noticed that in our app bundles, framer-motion bundle size has increased by ~100kb, mostly due to loading the index-legacy.js file in v10. Is this expected or something going wrong?
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug https://github.com/michaelchen-cb/framer-bundle-repro
4. Steps to reproduce
Steps to reproduce the behavior:
yarn install
yarn start
git checkout v10
and repeat steps 3-5.5. Expected behavior Bundle should not include the legacy js file.
6. Video or screenshots
v6.5.1
v10.18.0
7. Environment details
If applicable, let us know which OS, browser, browser version etc you're using.