Skip to content

Conversation

@carlostxm
Copy link
Contributor

feat: add --preserve-modules flag for tree-shaking support

Enables Rollup's preserveModules mode to generate individual files instead of a single bundle, allowing effective tree-shaking for consumers.

Usage

package-build -m
package-build --preserve-modules

Changes

  • getRollupConfig.js: Added preserveModules option with dir output instead of file
  • build.js: Parse -m / --preserve-modules CLI flag
  • README.md: Document new flag
  • CHANGELOG.md: Add entry for new feature

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants