Skip to content
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

Migrate the Redux package to full ESM and modernize build output #4474

Merged
merged 4 commits into from
Jan 29, 2023

Conversation

markerikson
Copy link
Contributor

@markerikson markerikson commented Jan 29, 2023

This PR:

  • Switches the package setup to be full ESM with type: "module" and exports definitions
  • Updates Rollup to 3.x
  • Renames a whole bunch of config files to .cjs to placate Node
  • Moves the build artifacts output to ./dist
  • Drops the UMD build artifacts
  • Stops transpiling the output to IE11 compat, and targets modern syntax instead

See the related RTK 2.0 ESM conversion in reduxjs/redux-toolkit#3095 .

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 29, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1ad6087:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration

- Added `type: "module"` and `exports` section
- Moved build output to `/dist`
- Updated Rollup to 3.x
- Changed CommonJS artifact to have `.cjs` extension to placate `publint`
- Renamed config files and `mangleErrors` script to `.cjs`
@markerikson markerikson merged commit ac7698f into master Jan 29, 2023
@markerikson markerikson deleted the feature/5.0-esm-migration branch January 29, 2023 00:07
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.

1 participant