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
Branches
No related tags found
No related merge requests found
Pipeline #202993 passed
...@@ -32,6 +32,13 @@ export default (async () => { ...@@ -32,6 +32,13 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true, sourcemap: true,
}, },
onwarn: function (warning, warn) {
// keycloak bundled code uses eval
if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*', targets: 'dist/*',
......
...@@ -33,6 +33,13 @@ export default (async () => { ...@@ -33,6 +33,13 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true, sourcemap: true,
}, },
onwarn: function (warning, warn) {
// keycloak bundled code uses eval
if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*', targets: 'dist/*',
......
...@@ -28,6 +28,13 @@ export default (async () => { ...@@ -28,6 +28,13 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true, sourcemap: true,
}, },
onwarn: function (warning, warn) {
// keycloak bundled code uses eval
if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*', targets: 'dist/*',
......
...@@ -25,6 +25,13 @@ export default (async () => { ...@@ -25,6 +25,13 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true, sourcemap: true,
}, },
onwarn: function (warning, warn) {
// keycloak bundled code uses eval
if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*', targets: 'dist/*',
......
...@@ -25,6 +25,13 @@ export default (async () => { ...@@ -25,6 +25,13 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true, sourcemap: true,
}, },
onwarn: function (warning, warn) {
// keycloak bundled code uses eval
if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*', targets: 'dist/*',
......
...@@ -51,6 +51,13 @@ export default (async () => { ...@@ -51,6 +51,13 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true, sourcemap: true,
}, },
onwarn: function (warning, warn) {
// keycloak bundled code uses eval
if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*', targets: 'dist/*',
......
...@@ -25,6 +25,13 @@ export default (async () => { ...@@ -25,6 +25,13 @@ export default (async () => {
format: 'esm', format: 'esm',
sourcemap: true, sourcemap: true,
}, },
onwarn: function (warning, warn) {
// keycloak bundled code uses eval
if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*', targets: 'dist/*',
......
...@@ -84,6 +84,13 @@ export default (async () => { ...@@ -84,6 +84,13 @@ export default (async () => {
}, },
treeshake: treeshake, treeshake: treeshake,
preserveEntrySignatures: false, preserveEntrySignatures: false,
onwarn: function (warning, warn) {
// keycloak bundled code uses eval
if (warning.code === 'EVAL' && warning.id.includes('sha256.js')) {
return;
}
warn(warning);
},
plugins: [ plugins: [
del({ del({
targets: 'dist/*', targets: 'dist/*',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment