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

fix: UMD dev build by removing runtime usage of require statement #317

Merged
merged 1 commit into from
Jan 15, 2020
Merged

fix: UMD dev build by removing runtime usage of require statement #317

merged 1 commit into from
Jan 15, 2020

Conversation

alex-ketch
Copy link
Contributor

closes #297

Thanks for your patience on this @phryneas.
I've simplified the build a little. Now it just uses the PROD_START_REMOVE_UMD comments throughout, and avoids a dynamic require statement.
The dev (unminified) UMD bundle is a few KB bigger, but the production one hasn't changed.

@netlify
Copy link

netlify bot commented Jan 15, 2020

Deploy preview for redux-starter-kit-docs ready!

Built with commit 98593f9

https://deploy-preview-317--redux-starter-kit-docs.netlify.com

@codesandbox-ci
Copy link

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 98593f9:

Sandbox Source
dry-firefly-w462b Configuration
agitated-glade-zbdg8 Configuration
rsk-github-issues-example Configuration

@markerikson
Copy link
Collaborator

Yeah, diffing 1.2.1's UMD build vs the CSB build of this PR shows that we've removed the require() line, and inlined all of invariant() and redux-immutable-state-invariant, as desired.

Thanks! I'll try to put out a new build this evening.

@markerikson markerikson merged commit ac32db0 into reduxjs:master Jan 15, 2020
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.

Counter Vanilla example broken
2 participants