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

Limit threads when transpiling with node-sass #105

Merged
merged 3 commits into from
May 28, 2018

Conversation

dnjstrom
Copy link
Contributor

This PR introduces a worker queue which limits the number of concurrent threads similar to how webpack sass-loader does. The changes are a workaround for the issues in node-sass discussed in #104.

@codecov
Copy link

codecov bot commented May 28, 2018

Codecov Report

Merging #105 into master will increase coverage by 0.08%.
The diff coverage is 91.3%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #105      +/-   ##
=========================================
+ Coverage   95.02%   95.1%   +0.08%     
=========================================
  Files           8       8              
  Lines         241     245       +4     
  Branches       83      84       +1     
=========================================
+ Hits          229     233       +4     
  Misses         12      12
Impacted Files Coverage Δ
src/sass-loader.js 93.1% <91.3%> (+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 73e67fe...b4a8301. Read the comment docs.

@dnjstrom
Copy link
Contributor Author

It looks like the patch codecov is failing but was already lower than the threshold even before this PR. Is there some test you think should be added @egoist?

@egoist egoist merged commit bf131cf into egoist:master May 28, 2018
@dnjstrom dnjstrom deleted the bug-limit-threads-node-sass branch May 28, 2018 14:46
bung87 pushed a commit to bung87/rollup-plugin-postcss that referenced this pull request Dec 3, 2019
This PR introduces a worker queue which limits the number of concurrent threads similar to how webpack [sass-loader](https://github.com/webpack-contrib/sass-loader/blob/2529c0716b1bca321c22d16636b1385682b1c730/lib/loader.js#L14) does. The changes are a workaround for the issues in node-sass discussed in egoist#104.
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

2 participants