diff --git a/rollup.config.js b/rollup.config.js
index 2f1e5d8cfaa1f52f6f7302da22ca6dca1d4d084a..a663cc0384193fcb07e814dca69e5b77899b111e 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -97,12 +97,8 @@ export default (async () => {
     preserveEntrySignatures: false,
     // external: ['zlib', 'http', 'fs', 'https', 'url'],
     onwarn: function (warning, warn) {
-        // ignore "suggestions" warning re "use strict"
-        if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
-            return;
-        }
         // ignore chai warnings
-        if (warning.code === 'CIRCULAR_DEPENDENCY') {
+        if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.includes('/chai/')) {
           return;
         }
         // keycloak bundled code uses eval