Skip to content

Fix umd build#20

Merged
ctrlplusb merged 3 commits intoctrlplusb:masterfrom
wmik:fix-umd-build
Nov 8, 2018
Merged

Fix umd build#20
ctrlplusb merged 3 commits intoctrlplusb:masterfrom
wmik:fix-umd-build

Conversation

@wmik
Copy link
Contributor

@wmik wmik commented Nov 8, 2018

Fixes #19

@ctrlplusb Hopefully this should work as expected

Effect of bundling shallowequal on file size:

Before
---------
Destination: dist/easy-peasy.js 
Bundle Size:  14.49 KB
Minified Size:  5.69 KB
Gzipped Size:  2.22 KB

Destination: dist/easy-peasy.min.js
Bundle Size:  5.6 KB
Minified Size:  5.6 KB
Gzipped Size:  2.24 KB

After
---------
Destination: dist/easy-peasy.js 
Bundle Size:  15.06 KB
Minified Size:  5.83 KB
Gzipped Size:  2.27 KB

Destination: dist/easy-peasy.min.js
Bundle Size:  5.74 KB
Minified Size:  5.71 KB
Gzipped Size:  2.28 KB

wmik added 2 commits November 8, 2018 20:15
- Fix global dependecy variable names
- Remove `prop-types` from production build
- Bundle `shallowequal` together with library
@codecov
Copy link

codecov bot commented Nov 8, 2018

Codecov Report

Merging #20 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #20   +/-   ##
=======================================
  Coverage   99.29%   99.29%           
=======================================
  Files           5        5           
  Lines         142      142           
  Branches       25       25           
=======================================
  Hits          141      141           
  Misses          1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89ac9fc...7f2ac39. Read the comment docs.

Copy link
Owner

@ctrlplusb ctrlplusb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work, looks great 👍

Good catch on the example typo too.

"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.20",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rad, never knew about this one before.

@ctrlplusb ctrlplusb merged commit 6c2a92c into ctrlplusb:master Nov 8, 2018
ctrlplusb pushed a commit that referenced this pull request Feb 6, 2019
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