diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-15 20:56:48 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-15 20:56:48 +0200 |
commit | 845088ec024d56af4d7fdd4cd861c2aa89dbceb6 (patch) | |
tree | 845e6469dea05bbe5250e9d21fcee69c9596b7d4 /scripts | |
parent | 9c7b548a9e8dbcf39360d3eb5eef9e5dad29e40b (diff) | |
download | Vencord-845088ec024d56af4d7fdd4cd861c2aa89dbceb6.tar.gz Vencord-845088ec024d56af4d7fdd4cd861c2aa89dbceb6.tar.bz2 Vencord-845088ec024d56af4d7fdd4cd861c2aa89dbceb6.zip |
buildWeb: suppress experimental api warnings
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/suppressExperimentalWarnings.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/suppressExperimentalWarnings.js b/scripts/suppressExperimentalWarnings.js new file mode 100644 index 0000000..dd5cd79 --- /dev/null +++ b/scripts/suppressExperimentalWarnings.js @@ -0,0 +1,6 @@ +process.emit = (originalEmit => function (name, data) { + if (name === "warning" && data?.name === "ExperimentalWarning") + return false; + + return originalEmit.apply(process, arguments); +})(process.emit); |