Skip to content

swr mutation cjs output is using module.exports instead of exports.default #1923

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

Closed
huozhi opened this issue Apr 14, 2022 · 2 comments · Fixed by #1926
Closed

swr mutation cjs output is using module.exports instead of exports.default #1923

huozhi opened this issue Apr 14, 2022 · 2 comments · Fixed by #1926

Comments

@huozhi
Copy link
Member

huozhi commented Apr 14, 2022

Bug report

Description / Observed Behavior

Latest branch swr mutation cjs output is using module.exports, and output warning for commonjs output

Expected Behavior

Should build like other subpath packages, output exports.default instead

@shuding
Copy link
Member

shuding commented Apr 16, 2022

Is this a bug of Bunchee or something we're doing wrong here?

@huozhi
Copy link
Member Author

huozhi commented Apr 16, 2022

I'm still checking, not sure the root cause yet

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

Successfully merging a pull request may close this issue.

2 participants