question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extends and standardize dependency message

See original GitHub issue

result.messages.push({ type: 'dependency', file }) is a special API for plugin developers to tell about used files to PostCSS runner. The most popular way to use it is a watch mode.

But seems like we need to improve this message:

  1. Just the file path is not enough. For instance, postcss-mixins accept glob pattern.
  2. Seems like webpack’s css-loader needs more types: missing, build, context and regular dependencies. I do not like separated types like build-dependency. I think it will be better to use { type: 'dependency', build: true }

Questions:

  1. @mischnic @RyanZim Can every runner support glob-pattern for file watch?
  2. @alexander-akait can you explain what is build/context/missed dependency? It maybe a good idea to use these messages in other builders too.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:26 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Mar 13, 2021

I think for string better to use dir-dependency

OK. It will be more CSS-ish.

maybe for dependency use file-dependency to avoid small misleading

We need compatibility with old API

0reactions
aicommented, Jun 2, 2021

We added optional glob parameter to dir-dependnecy: { type: 'dir-dependency', dir: '/imported', glob: '**/*.css', }

https://github.com/postcss/postcss/pull/1590

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extends and standardize dependency message - - Bountysource
Seems like webpack's css-loader needs more types: missing , build , context and regular dependencies. I do not like separated types like build-dependency...
Read more >
Learning the Basics - Gradle User Manual
Gradle can consume dependencies available in the local Maven repository. Declaring this repository is beneficial for teams that publish to the local Maven ......
Read more >
Dependency tracking in Application Insights - Azure Monitor
Monitor dependency calls from your on-premises or Azure web application with Application Insights.
Read more >
Understanding Dependency Injection in .NET Core - Auth0
The framework provides extension methods to register and configure dependencies for the most common services.
Read more >
Working with dependency injection in .NET Standard
Working with dependency injection in .NET Standard: inject your AWS clients – part 2 · You might have complex configuration needs (development ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found