diff --git a/packages/auth/rollup.config.js b/packages/auth/rollup.config.js index 520aebe729d9923f105132aa569311d47fa2d384..76cf524401e7974e4cd03b85b5cee3aff7c4597b 100644 --- a/packages/auth/rollup.config.js +++ b/packages/auth/rollup.config.js @@ -32,6 +32,13 @@ export default (async () => { format: 'esm', sourcemap: true, }, + onwarn: function (warning, warn) { + // keycloak bundled code uses eval + if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) { + return; + } + warn(warning); + }, plugins: [ del({ targets: 'dist/*', diff --git a/packages/data-table-view/rollup.config.js b/packages/data-table-view/rollup.config.js index 2e6953d2458ade1d7998bcd66c266ebc17452ade..e3cb2b0ca4d24b3ddb3749b0881daade66aa0a97 100644 --- a/packages/data-table-view/rollup.config.js +++ b/packages/data-table-view/rollup.config.js @@ -33,6 +33,13 @@ export default (async () => { format: 'esm', sourcemap: true, }, + onwarn: function (warning, warn) { + // keycloak bundled code uses eval + if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) { + return; + } + warn(warning); + }, plugins: [ del({ targets: 'dist/*', diff --git a/packages/knowledge-base-web-page-element-view/rollup.config.js b/packages/knowledge-base-web-page-element-view/rollup.config.js index d82ac1f6590a702c42ff5aa12dd330b1a5154a88..d4d5b09187131dcd153b12b08b7e0ec9e479b2ac 100644 --- a/packages/knowledge-base-web-page-element-view/rollup.config.js +++ b/packages/knowledge-base-web-page-element-view/rollup.config.js @@ -28,6 +28,13 @@ export default (async () => { format: 'esm', sourcemap: true, }, + onwarn: function (warning, warn) { + // keycloak bundled code uses eval + if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) { + return; + } + warn(warning); + }, plugins: [ del({ targets: 'dist/*', diff --git a/packages/person-profile/rollup.config.js b/packages/person-profile/rollup.config.js index 318d445a67aa393b52235f2de3a661161e602878..b8ec4bf90acb03ee8c89428cc71f08f076a5d43b 100644 --- a/packages/person-profile/rollup.config.js +++ b/packages/person-profile/rollup.config.js @@ -25,6 +25,13 @@ export default (async () => { format: 'esm', sourcemap: true, }, + onwarn: function (warning, warn) { + // keycloak bundled code uses eval + if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) { + return; + } + warn(warning); + }, plugins: [ del({ targets: 'dist/*', diff --git a/packages/person-select/rollup.config.js b/packages/person-select/rollup.config.js index 5a03190293dd207a0b8b1b02cd920db21a581e3e..9f5e6d19732d6e2fd2610673deebb4a109fb29b6 100644 --- a/packages/person-select/rollup.config.js +++ b/packages/person-select/rollup.config.js @@ -25,6 +25,13 @@ export default (async () => { format: 'esm', sourcemap: true, }, + onwarn: function (warning, warn) { + // keycloak bundled code uses eval + if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) { + return; + } + warn(warning); + }, plugins: [ del({ targets: 'dist/*', diff --git a/packages/provider/rollup.config.js b/packages/provider/rollup.config.js index c7993776c6c87219165b5885b4ef8bf88ceaf03c..427a8190d12c309ec7b61f97a97636d4b482f38e 100644 --- a/packages/provider/rollup.config.js +++ b/packages/provider/rollup.config.js @@ -51,6 +51,13 @@ export default (async () => { format: 'esm', sourcemap: true, }, + onwarn: function (warning, warn) { + // keycloak bundled code uses eval + if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) { + return; + } + warn(warning); + }, plugins: [ del({ targets: 'dist/*', diff --git a/packages/resource-select/rollup.config.js b/packages/resource-select/rollup.config.js index 35c012ca71c30852fa3053be054f7d5fce4fc0bb..98636f4ac8a998fa82a77a39e773ed5ff14f499b 100644 --- a/packages/resource-select/rollup.config.js +++ b/packages/resource-select/rollup.config.js @@ -25,6 +25,13 @@ export default (async () => { format: 'esm', sourcemap: true, }, + onwarn: function (warning, warn) { + // keycloak bundled code uses eval + if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) { + return; + } + warn(warning); + }, plugins: [ del({ targets: 'dist/*', diff --git a/toolkit-showcase/rollup.config.js b/toolkit-showcase/rollup.config.js index a7736a48ba5bfa5bac6a96b67126808f4d60fcdb..c97b9c41ed0590540fb54945d8a51a38cb4f330c 100644 --- a/toolkit-showcase/rollup.config.js +++ b/toolkit-showcase/rollup.config.js @@ -84,6 +84,13 @@ export default (async () => { }, treeshake: treeshake, preserveEntrySignatures: false, + onwarn: function (warning, warn) { + // keycloak bundled code uses eval + if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) { + return; + } + warn(warning); + }, plugins: [ del({ targets: 'dist/*',