-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Rollup 3 #749
Comments
🎉 This issue has been resolved in version 6.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
after upgrading to version 6.4.0 my bundle size has been reduced from 1.05 Mb to 279Kb almost 4x |
I'm having an issue after upgrading to Here is a simplified version of my react code: // Component.tsx
import ReactSelect from 'react-select';
const Comp = (props) => {
return <ReactSelect {...props} />
} // tsup.config.ts
export default {
bundle: true,
clean: true,
dts: true,
format: ['cjs', 'esm'],
minify: false,
sourcemap: true,
splitting: true,
target: 'es2022',
treeshake: 'smallest' The generated CJS file with tsup
The generated CJS file with tsup
Do you know if there is additional rollup configuration I need to pass to have rollup resolving |
Rollup 3 changed the default output.interop behavior. We'd better set it to |
I figured, I've opened a PR with that change: #815 |
Upgrading to rollup 3 could slightly decrease the bundle size for CJS with
--treeshake
:Rollup Repl 2.79.1
Rollup Repl 3.2.3
removed
Object.defineProperty(exports, '__esModule', { value: true });
There're a few built-in rollup plugins in tsup currently prevents our upgrading:
@rollup/plugin-json
: 👍 5.0.0 availablerollup-plugin-dts
: 👍 5.0.0 availablerollup-plugin-hashbang
: ❓ need investigateUpvote & Fund
The text was updated successfully, but these errors were encountered: