Failed to set @use-gesture/core/action
as external dependency
#832
Labels
browser
Not working in Browser
@use-gesture/core/action
as external dependency
#832
Failing module
https://esm.sh/@use-gesture/[email protected]/ accidentally bundles actions.js from
https://esm.sh/@use-gesture/[email protected]/actions
which means that variables set on the imported
actions
module are not visible inside the bundled version of it when seen fromcore
.Using
https://esm.sh/@use-gesture/[email protected]/?external=@use-gesture/core/actions
or
https://esm.sh/*@use-gesture/[email protected]
does not fix this.
Using ?no-bundle it is clear that
core
imports https://esm.sh/v135/@use-gesture/[email protected]/es2022/dist/actions-fe213e88.esm.js which is a minified version of@use-gesture/core/actions
an hence even without bundling it is not possible to share variables since the source is different and when loaded it will end up in a different module instance.Additional info
The text was updated successfully, but these errors were encountered: