diff --git a/CHANGELOG.md b/CHANGELOG.md index d4590aede..961debefa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # rollup changelog +## 4.19.1 + +_2024-07-27_ + +### Bug Fixes + +- Do not remove parantheses when tree-shaking logical expressions (#5584) +- Do not ignore side effects in calls left of an optional chaining operator (#5589) + +### Pull Requests + +- [#5584](https://github.com/rollup/rollup/pull/5584): fix: find whitespace from operator position to start (@TrickyPi) +- [#5587](https://github.com/rollup/rollup/pull/5587): docs: improve command by code-group (@thinkasany, @lukastaegert) +- [#5589](https://github.com/rollup/rollup/pull/5589): Fix side effect detection in optional chains (@lukastaegert) +- [#5592](https://github.com/rollup/rollup/pull/5592): chore(deps): lock file maintenance minor/patch updates (@renovate[bot]) +- [#5593](https://github.com/rollup/rollup/pull/5593): chore(deps): lock file maintenance minor/patch updates (@renovate[bot]) +- [#5594](https://github.com/rollup/rollup/pull/5594): chore(deps): lock file maintenance (@renovate[bot]) +- [#5595](https://github.com/rollup/rollup/pull/5595): chore(deps): lock file maintenance (@renovate[bot]) + ## 4.19.0 _2024-07-20_ diff --git a/browser/package.json b/browser/package.json index 3aec63868..d53b08704 100644 --- a/browser/package.json +++ b/browser/package.json @@ -1,6 +1,6 @@ { "name": "@rollup/browser", - "version": "4.19.0", + "version": "4.19.1", "description": "Next-generation ES module bundler browser build", "main": "dist/rollup.browser.js", "module": "dist/es/rollup.browser.js", diff --git a/docs/introduction/index.md b/docs/introduction/index.md index fc3933d5d..b6815d418 100755 --- a/docs/introduction/index.md +++ b/docs/introduction/index.md @@ -26,6 +26,7 @@ npm install --global rollup 这些命令假定你的应用程序入口点命名为 `main.js`,并且希望将所有导入编译到一个名为 `bundle.js` 的单个文件中。 +<<<<<<< HEAD 对于浏览器: ```shell @@ -48,6 +49,28 @@ rollup main.js --file bundle.js --format umd --name "myBundle" ``` ## 背景 {#the-why} +======= +::: code-group + +```shell [For browsers:] +# compile to a