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

Suppress some warnings in production #441

Merged
merged 1 commit into from
Oct 14, 2018

Conversation

exoego
Copy link
Collaborator

@exoego exoego commented Oct 14, 2018

(no related issue)
This PR complements #438.

I noticed that all process.env.NODE_ENV !== 'production' are removed in production mode (vue-i18n.min.js).
Such optimization can make vue-i18n.min.js smaller and faster a little.

So, this PR add process.env.NODE_ENV !== 'production' to some warning logs, where it seems appropriate.

@codecov-io
Copy link

codecov-io commented Oct 14, 2018

Codecov Report

Merging #441 into dev will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #441      +/-   ##
==========================================
+ Coverage   95.96%   95.97%   +<.01%     
==========================================
  Files           9        9              
  Lines         645      646       +1     
==========================================
+ Hits          619      620       +1     
  Misses         26       26
Impacted Files Coverage Δ
src/index.js 99.6% <100%> (ø) ⬆️
src/component.js 100% <100%> (ø) ⬆️

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 d75c90f...0f87ae7. Read the comment docs.

Copy link
Owner

@kazupon kazupon left a comment

Choose a reason for hiding this comment

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

Thanks!

@kazupon kazupon merged commit 43931f5 into kazupon:dev Oct 14, 2018
@exoego exoego deleted the suppress-some-warnings branch November 14, 2018 22:45
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