shaker fails on export default
of function with no name
#1434
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
@linaria/[email protected]
@wyw-in-js/[email protected]
[email protected]
[email protected]
node.js @ 22.11.0
Description
I have some code which uses d3 to create a force-directed graph. this code appears to work just fine in vite's dev mode, but when building for production I encounter this error:
the line of d3-force/src/simulation.js referenced in the stack trace is this:
i.e. a default export of type function with no name applied to it.
manually editing d3-force/src/simulation.js and providing a name to that function allows my build to succeed:
fwiw this bug is also present with linaria 5 + @linaria/shaker . I haven't checked older versions.
The text was updated successfully, but these errors were encountered: