From 5ab49f0d6691874db4361a55ff8889f3d1a5213f Mon Sep 17 00:00:00 2001 From: Hyan Mandian Date: Mon, 3 Sep 2018 19:17:01 -0300 Subject: [PATCH 1/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a111bbd5..737e1118 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ Here's what's coming up for Microbundle: - [Stockroom](https://github.com/developit/stockroom) Offload your store management to a worker easily. - [Microenvi](https://github.com/fwilkerson/microenvi) Bundle, serve, and hot reload with one command. - [react-recomponent](https://github.com/philipp-spiess/react-recomponent) Reason-style reducer components for React using ES6 classes. +- [brazilian-utils](https://github.com/brazilian-utils/brazilian-utils) Utils library for specific Brazilian businesses. ## 🥂 License From 3ec208a58341dba8e16c026011bfa4ecc43ff0fc Mon Sep 17 00:00:00 2001 From: chocolateboy Date: Tue, 16 Oct 2018 18:51:25 +0100 Subject: [PATCH 2/3] update documentation after #137: s/UglifyJS/Terser/ --- README.md | 4 ++-- src/prog.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8eb4d93e..03dc8081 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ - Produces tiny, optimized code for all inputs - Supports multiple entry modules _(`cli.js` + `index.js`, etc)_ - Creates multiple output formats for each entry _(CJS, UMD & ESM)_ -- Built-in Uglify compression & gzipped bundle size tracking +- Built-in Terser compression & gzipped bundle size tracking ## 🔧 Installation @@ -69,7 +69,7 @@ Just like `microbundle build`, but watches your source files and rebuilds on any --target Specify your target environment (default node) --external Specify external dependencies, or 'none' --globals Specify globals dependencies, or 'none' - --compress Compress output using UglifyJS (default true) + --compress Compress output using Terser (default true) --strict Enforce undefined global context and add "use strict" --name Specify name exposed in UMD builds --cwd Use an alternative working directory (default .) diff --git a/src/prog.js b/src/prog.js index ea17d0dd..bffcf770 100644 --- a/src/prog.js +++ b/src/prog.js @@ -22,7 +22,7 @@ export default handler => { .option('--external', `Specify external dependencies, or 'none'`) .option('--globals', `Specify globals dependencies, or 'none'`) .example('microbundle --globals react=React,jquery=$') - .option('--compress', 'Compress output using UglifyJS', true) + .option('--compress', 'Compress output using Terser', true) .option('--strict', 'Enforce undefined global context and add "use strict"') .option('--name', 'Specify name exposed in UMD builds') .option('--cwd', 'Use an alternative working directory', '.') From aeb85ee92491b5f136a0def15cdac7728e90b828 Mon Sep 17 00:00:00 2001 From: Leah Date: Mon, 22 Oct 2018 23:20:29 +0200 Subject: [PATCH 3/3] don't compress microbundle dist (maybe we can add this for target=node) --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5a5e1bc2..385838dd 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "bin": "dist/cli.js", "scripts": { "build": "npm run -s build:babel && npm run -s build:self", - "build:babel": "babel-node src/cli.js --format cjs src/{cli,index}.js --presets env", - "build:self": "node dist/cli.js --format cjs src/{cli,index}.js", + "build:babel": "babel-node src/cli.js --no-compress --format cjs src/{cli,index}.js --presets env", + "build:self": "node dist/cli.js --no-compress --format cjs src/{cli,index}.js", "precommit": "lint-staged", "prepare": "npm run -s build", "prepare:babel": "babel --presets env src/*.js -d dist && npm t",