From b2a63799f979a2f52490f3fcac866a5f0e53fff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Tue, 25 Sep 2018 16:27:44 +0200 Subject: [PATCH] fix(changelog): fix some typos some minor fixes for copy-pastability of the cli flags! --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b73f5f..db92ba5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,14 +30,14 @@ With this release, we will do the following: - - `--target broswer`: By default, we generate JS that is an ES6 module. We used to put + - `--target browser`: By default, we generate JS that is an ES6 module. We used to put this in the `main` field. Now we put it in the `module` field. We also add `sideEffects: false` so that bundlers that want to tree shake can. - - `-- target nodejs`: This target doesn't change. We put generated JS that is a + - `--target nodejs`: This target doesn't change. We put generated JS that is a CommonJS module in the `main` key. - - `-- target no-modules`: This is a new target. For this target we generate bare JavaScript. + - `--target no-modules`: This is a new target. For this target we generate bare JavaScript. This code is put in a `browser` field. You can see the structs that represent each target's expected `package.json` [here](https://github.com/rustwasm/wasm-pack/tree/master/src/manifest/npm).