Skip to content

Commit

Permalink
feat: extend experimental WC features
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Sep 25, 2021
1 parent 272b678 commit bbafc54
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions file-content-injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,17 @@ const fs = require("fs");
match: String.raw`removeCustomProps(node['cssText']);`,
replacement: String.raw`reduceCalc(removeCustomProps(node['cssText']));`
},
{
action: "replace",
file: "node_modules/@webcomponents/shadycss-experimental/src/style-properties.js",
match: String.raw`return method && method.call(this, selector);`,
replacement: `
try {
return method && method.call(this, selector);
} catch (ex) {
return false;
}`
},
// Have it remove all rules containing :focus-visible
{
action: "replace",
Expand Down

0 comments on commit bbafc54

Please sign in to comment.