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

support for the UMD package format #281

Merged
merged 1 commit into from
Jul 6, 2019

Conversation

emmanueltouzery
Copy link
Contributor

I saw in #232 that you'd consider a PR to support UMD package generation, and it would be very important for us to have a UMD package of react-window honestly.

So here's a PR. I tested the generated UMD with our app and it seems to work just fine. There are two open questions maybe:

  1. I tested by copying the generated JS files in our app. We just need to be sure that the files will indeed be in the NPM package. I believe they'll be, but...

  2. If you want to just provide UMD support with the minimal extra dependencies, maybe you don't want to "uglify" (minimize) the output. For our purpose we don't need a minimized UMD, but some people may expect it. So I made two commits, the uglify support is in the second commit. So you can take it in, or not. I checked and formik for instance ships minified UMDs.

rollup.config.js Outdated Show resolved Hide resolved
rollup.config.js Outdated Show resolved Hide resolved
rollup.config.js Outdated Show resolved Hide resolved
rollup.config.js Outdated Show resolved Hide resolved
rollup.config.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@emmanueltouzery
Copy link
Contributor Author

ok, all clear! I'll resubmit with your suggestions + the yarn lint failures.

@TrySound
Copy link
Contributor

TrySound commented Jul 5, 2019

Just push in this branch

@emmanueltouzery
Copy link
Contributor Author

I pushed a new version!

@bvaughn bvaughn merged commit 6bfd62b into bvaughn:master Jul 6, 2019
@bvaughn
Copy link
Owner

bvaughn commented Jul 6, 2019

Thanks for the code review, @TrySound.

Published 1.8.5

@emmanueltouzery emmanueltouzery deleted the umd_package branch July 7, 2019 06:01
darrenowensplancom pushed a commit to darrenowensplancom/react-window that referenced this pull request Jan 9, 2020
* Added UMD (dev and prod) build (@emmanueltouzery - bvaughn#281)
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.

None yet

3 participants