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.

filter by `descriptionData`

See original GitHub issue

I need more granular filtering, using the descriptionData rule available in Webpack5. (We have some packages in the node_modules that need reloading) I see only exclude and include. Is support for the entire Webpack condition object coming?

And is it important to filter files for the ReactRefreshWebpackPlugin? or rule for react-refresh/babel enough?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
pmmmwhcommented, Nov 7, 2021

I’ve been trying to make this work, but unfortunately it is not as simple as it sounds.

The compiler for rules which Webpack use is not exposed for third parties, so to emulate their behaviour would mean we have to re-implement the whole thing.

Instead of going down this route, it is possible for you to opt out of the built-in integration of the loader by making the include part match nothing (in the next release there will be a kill switch option) and inject @pmmmwh/react-refresh-webpack-plugin/loader on your own via the module.rules property in your Webpack configuration. The loader is not really documented as it is considered part of our internal API, but if you don’t use complex ESM builds the default options should work for you.

2reactions
pmmmwhcommented, Sep 29, 2021

amazing! and it will support the same structure as a Webpack 5 rule?

Yes, hopefully it is possible

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I filter a list of data by id for my react component to get ...
I want to filter through the list of permissions which only ... "Map custom values (for each data source)", "description": "Data Source", ...
Read more >
APM Visibility Filters | API Reference - Splunk Dev
APIs to manage visibility filters on indexed and unindexed span tags in Splunk APM. These filters identify and hide span tag values that...
Read more >
ADTF: Media Description Data Generator Filter Plugin
Media Description Data Generator · demo_media_description_data_generator.filter.adtf.cid · Use this filter to generate random values for a specified Media ...
Read more >
How to execute an IronPython script on Filter or Marking change.
How to execute an IronPython script on Filter or Marking change. ... Description: Data function to pass value of x to y and...
Read more >
get_FN013: Get FN013 - Gear Description Data FN_Portal API in ...
get_FN013: Get FN013 - Gear Description Data FN_Portal API. In AdamCottrill/glfishr: Fetch ... for the full list of available filter keys (query parameters) ......
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