[mv3] Support conditional `env_mv3` directive to parser

Related issue:
- https://github.com/uBlockOrigin/uBOL-issues/issues/1
This commit is contained in:
Raymond Hill 2022-10-11 12:02:33 -04:00
parent da6d17c159
commit 873c2e7264
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ const rulesetDir = `${outputDir}/rulesets`;
const scriptletDir = `${rulesetDir}/js`;
const env = [
'chromium',
'mv3',
'native_css_has',
'ublock',
'ubol',

View File

@ -3147,6 +3147,7 @@ Parser.utils = Parser.prototype.utils = (( ) => {
[ 'env_firefox', 'firefox' ],
[ 'env_legacy', 'legacy' ],
[ 'env_mobile', 'mobile' ],
[ 'env_mv3', 'mv3' ],
[ 'env_safari', 'safari' ],
[ 'cap_html_filtering', 'html_filtering' ],
[ 'cap_user_stylesheet', 'user_stylesheet' ],