Open Sparkier opened 16 hours ago
Looks like we only use it for the "view source" in https://github.com/vega/vega-embed/blob/2dfdf591c86462077fc780dd717d40681ffed6aa/src/embed.ts#L4. It's a super simple library: https://github.com/lydell/json-stringify-pretty-compact/blob/main/index.js. Maybe if we update to v4, this issue goes away since that's esm?
Could very well be. Are you planning to update vega-embed to v4? If so, I can test.
Done. Try 6.29.0.
Still getting:
Not much more time to explore further today. Can look into it again later this week.
Thanks for trying and thanks for pushing me to finally update this dependency across our stack.
vega-embed
depends onjson-stringily-pretty-compact
, but that does not work when SSR is enabled:Disabling SSR via
export const ssr = false;
will fix things, but that is certainly not ideal.