Skip to content

[BREAKING] feat: simplify RepackPlugin API#976

Merged
jbroma merged 9 commits intomainfrom
feat/simplify-repack-plugin-api
Feb 13, 2025
Merged

[BREAKING] feat: simplify RepackPlugin API#976
jbroma merged 9 commits intomainfrom
feat/simplify-repack-plugin-api

Conversation

@jbroma
Copy link
Copy Markdown
Contributor

@jbroma jbroma commented Feb 12, 2025

Summary

  • - BREAKING: removed context option from RepackPlugin - it is now obtained automatically from configuration instead
  • - BREAKING: removed mode option from RepackPlugin - it is now obtained automatically from configuration instead
  • - BREAKING: removed sourceMaps option from RepackPlugin - to enable or disable sourceMaps you should now use devtool field in Rspack/webpack config
  • - platform option in RepackPlugin is now optional and defaults to platform obtained from compiler's name.
  • - output option in RepackPlugin is now optional and defaults to {}
  • - configuration object passed to RepackPlugin is now optional - this means that you can now add RepackPlugin like this: new Repack.RepackPlugin()

Test plan

  • - testers work
  • - tests pass

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
repack-website ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2025 11:01am

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 13, 2025

🦋 Changeset detected

Latest commit: 2a2297b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@callstack/repack Major
@callstack/repack-plugin-expo-modules Major
@callstack/repack-plugin-nativewind Major
@callstack/repack-plugin-reanimated Major
@callstack/repack-dev-server Major
@callstack/repack-init Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jbroma jbroma marked this pull request as ready for review February 13, 2025 10:56
@jbroma jbroma merged commit c29ba2f into main Feb 13, 2025
@jbroma jbroma deleted the feat/simplify-repack-plugin-api branch February 13, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants