react-spectrum-charts
react-spectrum-charts copied to clipboard
`vega-embed` relies on `fast-json-patch` which does not get hoisted properly by `parcel`
Provide a general summary of the issue here
vega-embed has a dependency on fast-json-patch which does not currently get hoisted correctly in parcel. vega-embed also has vega-lite as a required dependency which is almost a 10MB package that we never use.
๐ค Expected Behavior?
react-spectrum-charts will work in parcel production builds without special package.json setup.
๐ฏ Current Behavior
parcel apps need to add an alias to their package.json that points to the index.js file for fast-json-patch instead of the index.mjs file.
๐ Possible Solution
Remove our dependency on vega-embed by reimplementing the necessary parts in react-spectrum-charts
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
- Create a simple parcel app
- Add
fast-json-patch - Serve with hoisting enabled
Version
v1.10.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Mac OS 14.5
๐งข Your Company/Team
Adobe
๐ท Tracking Issue
No response