Open 0-don opened 7 months ago
Hi @0-don thanks for sharing, solid-start receive new updates recently, i will check this and go back with update soon.
In dev mode, Babel shows the error as above. However, when I built it, app works well. I think 'tree shake' function solved this issue during the build process. Am I right?
Just noticed the same issue here in a personal proj.
same hare
Description
When building a SolidJS project using
solid-icons
, Babel throws an optimization error indicating that the styling of some modules exceeds the maximum size of 500KB. This is occurring specifically withsolid-icons/fa/index.js
andsolid-icons/tb/index.js
. The error message is repeated multiple times, suggesting that the issue persists through multiple attempts to compile.Steps to Reproduce
@solidjs/start
.solid-icons
package in the dependencies.Expected Behavior
The build should complete without errors, and Babel should handle the module size appropriately, possibly by splitting or tree-shaking.
Actual Behavior
The following error is received:
Environment
Possible Solution
Could this be an issue with how the icons are being imported or bundled? Is there a recommended way to import
solid-icons
that could avoid this problem?Additional Context