Commit b4d5a29c authored by Niklas Mischkulnig's avatar Niklas Mischkulnig

actually minify

parent fc329dc9
......@@ -206,6 +206,12 @@ if ((typeof exports.default === 'function' || (typeof exports.default === 'objec
/** @type {import('@swc/core').Options} */
const options = {
minify: true,
jsc: {
minify: {
mangle: true,
compress: true,
},
},
}
const source = file.data.toString('utf-8')
......
......@@ -106,8 +106,9 @@ async function detectPolyfills(next) {
const { polyfillFiles } = await next.readJSON('.next/build-manifest.json')
const polyfills = {
'Symbol.prototype.description': '"description"in Symbol.prototype',
'String.prototype.trimStart': '"trimStart"in String.prototype',
'Symbol.prototype.description':
'Object.defineProperty(Symbol.prototype,"description"',
'String.prototype.trimStart': 'String.prototype.trimStart=',
'Array.prototype.at': 'Array.prototype.at=',
'Array.prototype.flat': 'Array.prototype.flat=',
'Object.fromEntries': 'Object.fromEntries=',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment