Skip to content

Conversation

@StarpTech
Copy link

@StarpTech StarpTech commented May 11, 2020

Proposed changes

This feature is needed to provide a sync interface for libraries like:

Types of changes

What types of changes does your code introduce
Put an x in the boxes that apply

  • Bug (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature which changes existing functionality)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING guide
  • Lint and unit tests pass with my changes ()
  • I have added tests that prove my fix is effective/works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes are merged and published in downstream modules

@coveralls
Copy link

coveralls commented May 11, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling fc37f1f on StarpTech:feature/sync_support into 11f7173 on michael-ciniawsky:master.

@StarpTech
Copy link
Author

StarpTech commented May 11, 2020

The reason why Node.js 4 is failing is unclear. As far as I can see is that the build issue exists for more than 2 years. It has nothing to do with this feature.
Since Node.js 4 is very old I recommend removing it from the matrix (In a new PR).

var file

if (options.sync) {
return composePlugins(handleResult(config('postcss', options).load(path)))
Copy link

Choose a reason for hiding this comment

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

config is still asycn i tried running this code should we use sync api instead?
https://github.com/davidtheclark/cosmiconfig#synchronous-api

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