aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/suppressExperimentalWarnings.js6
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);