Open wighawag opened 3 years ago
@wighawag did you manage to work around this?
@DiegoGallegos4 What I do is load the 3box.min.js from js itself. This is not ideal, but it get me the 3box sdk without the need to include in my buid process that would not accept non es-module easily.
3box is not exporting to es module, this break compatibility with modern js tooling.
Some tool expects es modules (vite) and es module benefit from tree-shaking (rollup).
I am not familiar with webpack but maybe there is any way to transpile to es module ?