Building an ESM prod version fails for me #2755
Unanswered
gyfis
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to build a production ESM version without devtools, and while the build is passing, I can't serialize the running store using
JSON.stringify(...)
because of a circular dependency.I'm starting to think that devtools being included in the browser/ESM version is a necessity, and couldn't find the difference which would cause these issues.
I'm doing one config change to disable the devtools
env.ts
I tried various other variants (
'__DEV__': 'false'
) but these also didn't help at all, and I think this is the minimal build still showing the erorr.When doing
I get this error:
Here's the rollup config I'm using for the build
And here's the built esm package: https://pastebin.com/2NLLg0tp (couldn't paste it here).
Any tips on how to overcome this appreciated! Happy to contribute the prod esm build as a PR when working.
Beta Was this translation helpful? Give feedback.
All reactions