diff --git a/Makefile b/Makefile index 1eb702daaf4..2b2a8083128 100644 --- a/Makefile +++ b/Makefile @@ -1049,9 +1049,13 @@ bench-rome-parcel2: | require/parcel2/node_modules bench/rome bench/rome-verify # Also inject "includeNodeModules": true or the aliases will be ignored. cat require/parcel2/package.json | sed '/^\}/d' > bench/rome/parcel2/package.json echo ', "engines": { "node": "14.0.0" }' >> bench/rome/parcel2/package.json - echo ', "targets": { "main": { "includeNodeModules": true } }' >> bench/rome/parcel2/package.json + echo ', "targets": { "main": { "includeNodeModules": true, "optimize": true } }' >> bench/rome/parcel2/package.json echo ', $(ROME_PARCEL_ALIASES) }' >> bench/rome/parcel2/package.json + # Parcel's minifier preserves all comments in the source code by default. + # Removing comments in the minified output requires a config file. + echo '{ "format": { "comments": false } }' > bench/rome/parcel2/.terserrc + cd bench/rome/parcel2 && time -p node_modules/.bin/parcel build entry.ts --dist-dir . --cache-dir .cache du -h bench/rome/parcel2/entry.js* cd bench/rome-verify && rm -fr parcel2 && ROME_CACHE=0 node ../rome/parcel2/entry.js bundle packages/rome parcel2