Skip to content
Snippets Groups Projects
Commit c6fe82fc authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

rollup: silence eval warnings from keycloak dep

parent 90c7d496
No related branches found
No related tags found
No related merge requests found
Pipeline #202993 passed
......@@ -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/*',
......
......@@ -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/*',
......
......@@ -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/*',
......
......@@ -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/*',
......
......@@ -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/*',
......
......@@ -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/*',
......
......@@ -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/*',
......
......@@ -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/*',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment