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
Describe the bug
In my electron app I went all-in on ESM and use [email protected] to bundle [email protected] code esm-style using "type": "module" and the following webpack config (only the relevant part):
Describe the bug
In my electron app I went all-in on ESM and use [email protected] to bundle [email protected] code esm-style using
"type": "module"
and the following webpack config (only the relevant part):and the following
tsconfig.json
compilerOptions:Note that I have to use
NodeNext
because I'm using ESM on both the main thread (node.js) and the renderer (browser).Sandbox or Video
I've made a minimal reproduction repo:
https://github.com/tom2strobl/usegesture-webpack-nodenext
Maybe https://github.com/arethetypeswrong/arethetypeswrong.github.io helps here? I think it's just a matter of changing exports.
Afaik usage of
module
for example is deprecated:use-gesture/packages/react/package.json
Line 23 in c779631
in favor of an export map (this for example is the one from fuse-js):
Information:
Checklist:
touch-action: none
to the draggable element.The text was updated successfully, but these errors were encountered: