From 733a1c43222051346f14fb86dac0e167fa0e9d12 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Thu, 28 Mar 2024 10:05:59 +0100 Subject: [PATCH] refactor: publish unminified sources (#12169) --- packages/puppeteer-core/Herebyfile.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/puppeteer-core/Herebyfile.mjs b/packages/puppeteer-core/Herebyfile.mjs index 972a080ba0d..426d908c0c0 100644 --- a/packages/puppeteer-core/Herebyfile.mjs +++ b/packages/puppeteer-core/Herebyfile.mjs @@ -110,8 +110,10 @@ export const buildTask = task({ bundle: true, allowOverwrite: true, format, - target: 'node16', - minify: true, + target: 'node18', + // Do not minify for readability and leave minification to + // consumers. + minify: false, legalComments: 'inline', }) );