Skip to content

Commit

Permalink
patch quiter console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Sep 6, 2024
1 parent dfd91c6 commit 13cd0f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/@greenwood+cli+0.30.0-alpha.5.patch
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ index d8409ea..d698549 100644

body = `const sheet = new CSSStyleSheet();sheet.replaceSync(\`${contents}\`);export default sheet;`;
diff --git a/node_modules/@greenwood/cli/src/plugins/resource/plugin-standard-javascript.js b/node_modules/@greenwood/cli/src/plugins/resource/plugin-standard-javascript.js
index 820899a..e1b7c9c 100644
index 820899a..15e89ae 100644
--- a/node_modules/@greenwood/cli/src/plugins/resource/plugin-standard-javascript.js
+++ b/node_modules/@greenwood/cli/src/plugins/resource/plugin-standard-javascript.js
@@ -7,6 +7,9 @@
Expand Down Expand Up @@ -291,7 +291,7 @@ index 820899a..e1b7c9c 100644
+
+ polyfills.importAttributes.forEach((attribute) => {
+ if (line.replace(/ /g, '').replace(/"/g, '\'').includes(`with{type:'${attribute}'}`)) {
+ console.log('we got a hit!', { url, line, value });
+ // console.log('we got a hit!', { url, line, value });
+ polyfilled = polyfilled.replace(line, `${line.split('with')[0]};\n`);
+ polyfilled = polyfilled.replace(value, `${value}?polyfill=type-${attribute}`);
+ }
Expand Down

0 comments on commit 13cd0f1

Please sign in to comment.