diff --git a/tasks/compile-javascripts.mjs b/tasks/compile-javascripts.mjs index eadec7f6a5..b7de74e30c 100644 --- a/tasks/compile-javascripts.mjs +++ b/tasks/compile-javascripts.mjs @@ -97,7 +97,6 @@ export async function compileJavaScript ([modulePath, { srcPath, destPath, minif */ export function minifyJavaScript (modulePath, result) { const minified = minify({ [modulePath]: result.code }, { - ie8: true, warnings: true, // Include source maps @@ -106,7 +105,13 @@ export function minifyJavaScript (modulePath, result) { filename: result.map.file, url: `${result.map.file}.map`, includeSources: true - } + }, + + // Compatibility workarounds + ie8: true, + module: false, + v8: true, + webkit: true }) if (minified.warnings) {