-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with ESM syntax #21
Comments
@axe312ger yep, I'm actually on it now (: |
Hey @axe312ger , here's the WIP PR: #22 |
Yeah if you export it as ESM, you have to keep the I'll have a look! |
I wonder whether it's ok to use the src index file as endpoint for ESM, or whether a single pre-built dist is also needed. 🤔 |
AFAIK: At best you compile down to ES6/ES7 and make sure to keep import/export.
…On 28 Mar 2023, 17:31 +0200, Yehonatan Daniv ***@***.***>, wrote:
I wonder whether it's ok to use the src index file as endpoint for ESM, or whether a single pre-built dist is also needed. 🤔
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@axe312ger should be fixed with 16418e3. |
@axe312ger did it work for you? |
Hey there,
thanks for the quick reply in #20.
I also noticed that the ESM implementation here is outdated, its pretty annoying to get it working with Gatsby (and probably other frameworks that now use/support ESM)
Can you please remove the https://github.com/wix-incubator/kampos/blob/master/package.json#L7? This should already help.
Alternatively: https://rollupjs.org/introduction/#publishing-es-modules (I think you do that, but your RollUp is v2 and v3 is the current... maybe upgrade? :))
Thank you so much,
If you got zero time, I can also give it a try, but didn't do much yet with rollup 🙈
The text was updated successfully, but these errors were encountered: