Block noisy console spam on build.
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
# Patches
|
||||||
|
|
||||||
|
## `sass`
|
||||||
|
|
||||||
|
`sass` is patched to avoid printing out a noisy deprecation notice on every
|
||||||
|
build. `sass` is imported by `rollup-plugin-styler`, in a way that triggers this
|
||||||
|
message. The patch simply prevents this console spam.
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/sass.node.mjs b/sass.node.mjs
|
||||||
|
index f59a3d8987162a3cbc9787c34f67186fb0f09186..b154f46118ccc03989b9a1c11309954c85515539 100644
|
||||||
|
--- a/sass.node.mjs
|
||||||
|
+++ b/sass.node.mjs
|
||||||
|
@@ -40,7 +40,7 @@ export const NodePackageImporter = cjs.NodePackageImporter;
|
||||||
|
export const deprecations = cjs.deprecations;
|
||||||
|
export const Version = cjs.Version;
|
||||||
|
|
||||||
|
-let printedDefaultExportDeprecation = false;
|
||||||
|
+let printedDefaultExportDeprecation = true;
|
||||||
|
function defaultExportDeprecation() {
|
||||||
|
if (printedDefaultExportDeprecation) return;
|
||||||
|
printedDefaultExportDeprecation = true;
|
||||||
+1
-1
@@ -78,7 +78,7 @@
|
|||||||
"rollup-plugin-serve": "^1.1.1",
|
"rollup-plugin-serve": "^1.1.1",
|
||||||
"rollup-plugin-styler": "^1.8.0",
|
"rollup-plugin-styler": "^1.8.0",
|
||||||
"rollup-plugin-visualizer": "^5.12.0",
|
"rollup-plugin-visualizer": "^5.12.0",
|
||||||
"sass": "^1.77.4",
|
"sass": "patch:sass@npm%3A1.77.4#~/.yarn/patches/sass-npm-1.77.4-13b6910aea.patch",
|
||||||
"ts-prune": "^0.10.3",
|
"ts-prune": "^0.10.3",
|
||||||
"type-fest": "^4.20.0",
|
"type-fest": "^4.20.0",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "^5.4.5",
|
||||||
|
|||||||
@@ -4123,7 +4123,7 @@ __metadata:
|
|||||||
rollup-plugin-serve: "npm:^1.1.1"
|
rollup-plugin-serve: "npm:^1.1.1"
|
||||||
rollup-plugin-styler: "npm:^1.8.0"
|
rollup-plugin-styler: "npm:^1.8.0"
|
||||||
rollup-plugin-visualizer: "npm:^5.12.0"
|
rollup-plugin-visualizer: "npm:^5.12.0"
|
||||||
sass: "npm:^1.77.4"
|
sass: "patch:sass@npm%3A1.77.4#~/.yarn/patches/sass-npm-1.77.4-13b6910aea.patch"
|
||||||
screenfull: "npm:^6.0.2"
|
screenfull: "npm:^6.0.2"
|
||||||
side-drawer: "npm:^3.1.0"
|
side-drawer: "npm:^3.1.0"
|
||||||
ts-prune: "npm:^0.10.3"
|
ts-prune: "npm:^0.10.3"
|
||||||
@@ -7671,7 +7671,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"sass@npm:^1.77.4":
|
"sass@npm:1.77.4":
|
||||||
version: 1.77.4
|
version: 1.77.4
|
||||||
resolution: "sass@npm:1.77.4"
|
resolution: "sass@npm:1.77.4"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -7684,6 +7684,19 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"sass@patch:sass@npm%3A1.77.4#~/.yarn/patches/sass-npm-1.77.4-13b6910aea.patch":
|
||||||
|
version: 1.77.4
|
||||||
|
resolution: "sass@patch:sass@npm%3A1.77.4#~/.yarn/patches/sass-npm-1.77.4-13b6910aea.patch::version=1.77.4&hash=0f2bd0"
|
||||||
|
dependencies:
|
||||||
|
chokidar: "npm:>=3.0.0 <4.0.0"
|
||||||
|
immutable: "npm:^4.0.0"
|
||||||
|
source-map-js: "npm:>=0.6.2 <2.0.0"
|
||||||
|
bin:
|
||||||
|
sass: sass.js
|
||||||
|
checksum: 10c0/39f768553fa1a29e4cfc11b672080c1a29a6b2565378ba0cca6b56604fb40db2d25dc224cbfcfac4caf0d448a154dae1fdfd1cd674a2f8396548ea8c0a43f868
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"sax@npm:^1.2.4":
|
"sax@npm:^1.2.4":
|
||||||
version: 1.3.0
|
version: 1.3.0
|
||||||
resolution: "sax@npm:1.3.0"
|
resolution: "sax@npm:1.3.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user