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

Minification support #105

Merged
merged 3 commits into from
Dec 4, 2018
Merged

Minification support #105

merged 3 commits into from
Dec 4, 2018

Conversation

guybedford
Copy link
Contributor

Fixes #62.

Finally found the right combo of minification options to not get things to break here.

I would have used the Webpack integration of minification, but auth0.js has a very strange bug where terser just returns "undefined" for the source code, which needed a custom workaround (basically just to fallback to unminified when this happens).

This does slow down the tests quite a bit, but I think it is worth it to ensure minification is properly tested. I've left minification off by default though in builds for this reason.

@codecov-io
Copy link

codecov-io commented Dec 4, 2018

Codecov Report

Merging #105 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
+ Coverage   75.36%   75.44%   +0.07%     
==========================================
  Files           7        6       -1     
  Lines         406      391      -15     
==========================================
- Hits          306      295      -11     
+ Misses        100       96       -4
Impacted Files Coverage Δ
src/cli.js 0% <ø> (ø) ⬆️
src/index.js 93.93% <100%> (+0.6%) ⬆️
src/loaders/relocate-loader.js 92.6% <0%> (-0.1%) ⬇️
src/loaders/node-loader.js 100% <0%> (ø) ⬆️
src/utils/sharedlib-emit.js

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 b65b51a...2c91175. Read the comment docs.

@rauchg
Copy link
Member

rauchg commented Dec 4, 2018

@guybedford needs rebase

@rauchg rauchg merged commit 1b0cd4c into master Dec 4, 2018
@rauchg rauchg deleted the min branch December 4, 2018 20:47
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.

3 participants