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: use same class names in dev and prod. fixes #147 #171

Merged
merged 1 commit into from
Nov 20, 2017

Conversation

satya164
Copy link
Member

No description provided.

@satya164 satya164 force-pushed the @satya164/class-name branch from 94e66a0 to b77288d Compare November 10, 2017 05:26
@codecov
Copy link

codecov bot commented Nov 10, 2017

Codecov Report

Merging #171 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #171      +/-   ##
==========================================
- Coverage   97.58%   97.57%   -0.01%     
==========================================
  Files          19       19              
  Lines         414      413       -1     
  Branches       87       85       -2     
==========================================
- Hits          404      403       -1     
  Misses         10       10
Impacted Files Coverage Δ
src/babel/preval-extract/index.js 100% <100%> (ø) ⬆️
src/babel/preval-extract/prevalStyles.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 3a1ef42...ed0f799. Read the comment docs.

@satya164 satya164 force-pushed the @satya164/class-name branch from b77288d to bfc60ab Compare November 10, 2017 05:32
@@ -72,7 +72,7 @@ export default (babel: BabelCore) => {
token.value.trim() === 'linaria-preval'
);
state.foundLinariaTaggedLiterals = false;
state.filename = state.file.opts.filename;
state.filename = relativeToCwd(state.file.opts.filename);
Copy link
Member Author

Choose a reason for hiding this comment

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

I changed this to use relative path for consistent file names across different machines, such as CI and local.

@satya164 satya164 requested a review from zamotany November 10, 2017 05:46
@satya164 satya164 force-pushed the @satya164/class-name branch from bfc60ab to ed0f799 Compare November 10, 2017 11:46
@zamotany zamotany merged commit 6b3a44b into master Nov 20, 2017
@zamotany zamotany deleted the @satya164/class-name branch November 20, 2017 11:55
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