Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Export to es module #902

Open
wighawag opened this issue Aug 25, 2020 · 2 comments
Open

Export to es module #902

wighawag opened this issue Aug 25, 2020 · 2 comments

Comments

@wighawag
Copy link

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 ?

@DiegoGallegos4
Copy link

@wighawag did you manage to work around this?

@wighawag
Copy link
Author

wighawag commented Feb 2, 2021

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants