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 ...@@ -206,6 +206,12 @@ if ((typeof exports.default === 'function' || (typeof exports.default === 'objec
/** @type {import('@swc/core').Options} */ /** @type {import('@swc/core').Options} */
const options = { const options = {
minify: true, minify: true,
jsc: {
minify: {
mangle: true,
compress: true,
},
},
} }
const source = file.data.toString('utf-8') const source = file.data.toString('utf-8')
......
...@@ -106,8 +106,9 @@ async function detectPolyfills(next) { ...@@ -106,8 +106,9 @@ async function detectPolyfills(next) {
const { polyfillFiles } = await next.readJSON('.next/build-manifest.json') const { polyfillFiles } = await next.readJSON('.next/build-manifest.json')
const polyfills = { const polyfills = {
'Symbol.prototype.description': '"description"in Symbol.prototype', 'Symbol.prototype.description':
'String.prototype.trimStart': '"trimStart"in String.prototype', 'Object.defineProperty(Symbol.prototype,"description"',
'String.prototype.trimStart': 'String.prototype.trimStart=',
'Array.prototype.at': 'Array.prototype.at=', 'Array.prototype.at': 'Array.prototype.at=',
'Array.prototype.flat': 'Array.prototype.flat=', 'Array.prototype.flat': 'Array.prototype.flat=',
'Object.fromEntries': 'Object.fromEntries=', '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