You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not find an official guide how to integrate Hammer ESM package, but this Stackoverflow answer seems to have a lot of votes and here I found the solution.
If would be great to fix this in the source code, so this fix doesn't have to be done manually after every install or update of the npm package.
The text was updated successfully, but these errors were encountered:
marisst
changed the title
Hammer import causes Rollup build crash (ESM version)
Hammer import crashes Rollup build (ESM version)
Jan 3, 2025
I integrate the Zoom plugin in my code like this:
Then I run a Rollup build:
The build crashes with the following error:
In order to fix the build, I go manually edit chartjs-plugin-zoom.esm.js and replace line 7:
with
I could not find an official guide how to integrate Hammer ESM package, but this Stackoverflow answer seems to have a lot of votes and here I found the solution.
If would be great to fix this in the source code, so this fix doesn't have to be done manually after every install or update of the npm package.
The text was updated successfully, but these errors were encountered: