-
Notifications
You must be signed in to change notification settings - Fork 507
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
Esmodule options in rollup output is always undefined #469
Comments
Oh sh*t, you're right, that's actually my code from #327 😨 . We don't have automated tests for Let me take a look at it when I get the chance. This syntax is preferred though. I'm also working on adding tests for custom babel config (c.f. #443 ); custom tsconfig is actually easier (no new dependencies). |
Ok, dug into this and found some strange results. The library I initially wrote this fix/feature for does indeed have So did some further sleuthing and some testing and turns out So yea, a PR would fix this. I think a test should re-use the directory in #468 (which might take a bit to get merged as Jared will likely be the one to merge it), and then could do something like: const buildExports = require('../stage-build/dist/index.js');
expect(buildExports.__esModule).toBe(true); |
OK, I'll wait for #468 to be merged then |
👍 Do you think you can rename this issue in the meantime? Just to avoid any confusion |
@etienne-dldc now that #468 is merged would you like to PR the fix to this? I can merge that in a lot faster myself now that I'm a collaborator |
Sorry for the late response... Thanks for taking care of this 😃 |
No need to apologize, 2 days to respond is pretty normal. I just wanted to get all the tsconfig changes & tests done in one go |
Hi,
While working on #468 I noticed this line of code
But
esModuleInterop
is a compiler option so I guess it should beI can create a PR to fix this I just want to be sure that I'm not missing something here...
The text was updated successfully, but these errors were encountered: