From de8699708cf6fa59ee66ce8686dd6b921fe0122b Mon Sep 17 00:00:00 2001 From: Jacob Babich Date: Wed, 27 May 2020 05:28:03 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20workaround=20Sapper's=20w?= =?UTF-8?q?arning-swallowing=20issue=20until=20it's=20solved=20upstream?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rollup.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 513cde7..b03e50f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -23,7 +23,8 @@ const warningIsIgnored = (warning) => warning.message.includes( "Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification", ) || warning.message.includes("Circular dependency: node_modules"); -const onwarn = (warning, onwarn_) => (warning.code === "CIRCULAR_DEPENDENCY" && /[/\\]@sapper[/\\]/.test(warning.message)) || warningIsIgnored(warning) || onwarn_(warning); +// Workaround for https://github.com/sveltejs/sapper/issues/1221 +const onwarn = (warning, _onwarn) => (warning.code === "CIRCULAR_DEPENDENCY" && /[/\\]@sapper[/\\]/.test(warning.message)) || warningIsIgnored(warning) || console.warn(warning.toString()); export default { client: {