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
Upgrading from 0.30.0 to 0.31.0 breaks webpack #228
Comments
Can confirm. Also the only difference between the files built with 0.31.0 as opposed to 0.30.0 seems to be related to the changes made in #221 (only exports in |
Can confirm, the output of different versions to the package.json: 0.31.0 & 0.32.0: "exports": {
".": {
"import": {
"default": "./esm/index.js",
"types": "./types/index.d.ts"
}
}
}, 0.30.0:
|
Webpack expects that the If you edit the exports to reorder the properties like this, then it works fine with Webpack: "exports": {
".": {
"import": {
"types": "./types/index.d.ts",
"default": "./esm/index.js"
}
}
}, |
Yeah that’s a bug. Types should come first. TypeScript works the same way (sorry, I didn’t know the order mattered until recently) |
Fixed in 0.32.1 (thanks @Macil!). Sorry for the delay on this. It was actually wrong before in 0.30.0 too (and prior versions). |
We've encountered that upgrading to the latest release causes problems downstream in our React/Webpack setup.
This looks related to PR #221
Downgrading back to 0.30.0 makes everything work again.
The text was updated successfully, but these errors were encountered: