Skip to content

feat(adblocker): DNR preprocessors#3097

Open
seia-soto wants to merge 23 commits intomainfrom
preprocessors
Open

feat(adblocker): DNR preprocessors#3097
seia-soto wants to merge 23 commits intomainfrom
preprocessors

Conversation

@seia-soto
Copy link
Member

fixes #3057

@seia-soto seia-soto self-assigned this Feb 23, 2026
@seia-soto seia-soto added the Ad-Blocking Issues releated to Ad Blocking label Feb 23, 2026
@seia-soto seia-soto changed the title DNR Preprocessors feat(adblocker): DNR preprocessors Feb 23, 2026
Copy link
Member

@chrmod chrmod left a comment

Choose a reason for hiding this comment

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

what this should react to env_experimental?

@seia-soto seia-soto requested a review from smalluban February 25, 2026 09:59
@seia-soto
Copy link
Member Author

@smalluban I wonder if proceeding in that direction is the simplest. Please confirm that we put loader to every module that loading the module including "hybrid", "import.meta.glob", or use of absolute path: "/...". We have so many places to patch even including build step: scripts/download-dnr-rulesets.js (requires utils/dnr.js). We can just create another utils/env.js and isolate the env or put loader to everywhere.

Putting loader and patching the source code on the way makes us to consider source-mapping in the future as well.

@seia-soto seia-soto requested a review from smalluban March 3, 2026 06:47
@smalluban
Copy link
Collaborator

@seia-soto, please update the branch and set the PR as "ready for review".

@seia-soto seia-soto marked this pull request as ready for review March 3, 2026 09:07
@smalluban smalluban requested a review from chrmod March 3, 2026 09:16
@smalluban
Copy link
Collaborator

@seia-soto This is a good question from @chrmod

what this should react to env_experimental?

Have you considered that?

@seia-soto
Copy link
Member Author

@smalluban I think it's fine since we regenerate the list of filters to be disabled on every configuration update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ad-Blocking Issues releated to Ad Blocking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preprocessors for DNR

3 participants