-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix codegen-openapi build output #4509
Conversation
- This was done mostly to prevent TypeScript from using the hoisted version of `esbuild` which caused a type error since the types in version 0.21.5 (the hoisted version) don't match the types in version 0.18.20 (the version `tsup` uses as a direct dependency).
- We do this because using a dynamic `import` significantly increases the bundle size.
41c0ba5
to
82bd724
Compare
# Conflicts: # .github/workflows/test-codegen.yml # packages/rtk-query-codegen-openapi/package.json # yarn.lock
Okay, merged the test changes over and this is clean. @aryaemami59 just to check: could you remind me why we need any of the build setup changes in the first place? |
Because the current build output is broken. The reason why it's broken is because we build with |
Okay. Can we do this PR without the |
1 - I don't think it can be done without. |
Okay. Any idea what other codegen-related changes (PRs, issues, etc) ought to go in as well? |
I'm not sure tbh. #4568 looks good. |
# Conflicts: # packages/rtk-query-codegen-openapi/package.json # yarn.lock
#4307 Will need to be merged first.
This PR:
tsup
.exports
field to provide ESM/CJS dual compatibility.lodash.camelcase
package instead of the entirelodash
library in order to minimize package bundle size.vite-tsconfig-paths
to get a similar setup for unit tests as@reduxjs/toolkit
.