-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Feature request: Add support for esm. #52
Comments
Thanks for opening the issue! I think the implementation will be closer to Babel (with the custom function wrapper) but haven't looked into it yet. |
@coreyfarrell I'm digging into this more but it seems like it'd require changes on the |
Actually, I think I found the answer at standard-things/esm#433 |
Need to do some testing on the changes using |
I just did some local testing against gulp, one issue I ran into it doesn't seem to respect any of the ways to set ESM options. To enable debug I had to edit interpret to use Note I'm looking into debug to find out why |
@coreyfarrell I'm guessing they don't look up options when it's used programmatically - might want to check that too. |
I got an explanation of the issue I was having with rollup. I had to drop my plan to use a dual mode At this point I'm not sure how important it is to be able to set the ESM options, I'm able to use |
@phated Would you be willing to publish an updated version that includes |
Yeah, I can probably get something published this week. |
@coreyfarrell potentially great news, I'm just wrapping up a complete test suite for this project and should have the ESM update published as soon as my Window's CI succeeds. |
@coreyfarrell just published as 1.2.0!! |
I'd like to request that esm be added if possible. Bad news I just tried adding it and couldn't get it to work. I added
'.esm.mjs': 'esm',
to extensions and'.esm.mjs'
to jsVariantExtensions. This caused the following from gulp:The result was the same for
gulp
andnpx gulp
(global gulp-cli vs local gulp-cli).The text was updated successfully, but these errors were encountered: