Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# rollup changelog

## 4.44.2

_2025-07-04_

### Bug Fixes

- Correctly handle `@__PURE__` annotations after `new` keyword (#5998)
- Generate correct source mapping for closing braces of block statements (#5999)

### Pull Requests

- [#5998](https://github.com/rollup/rollup/pull/5998): Support `@__PURE__` when nested after new in constructor invocations (@TrickyPi)
- [#5999](https://github.com/rollup/rollup/pull/5999): Add location info for closing brace of block statement (@TrickyPi)
- [#6002](https://github.com/rollup/rollup/pull/6002): chore(deps): update dependency vite to v7 (@renovate[bot], @lukastaegert)
- [#6004](https://github.com/rollup/rollup/pull/6004): fix(deps): lock file maintenance minor/patch updates (@renovate[bot], @lukastaegert)

## 4.44.1

_2025-06-26_
Expand Down Expand Up @@ -6232,7 +6248,6 @@ _2020-03-06_

- Rollup now requires at least Node 10 to run, or a sufficiently modern browser (#3346)
- The file structure of Rollup's ESM builds has changed:

- The main ESM entry point is now at `rollup/dist/es/rollup.js` instead of `rollup/dist/rollup.es.js`
- The ESM browser build is at `rollup/dist/es/rollup.browser.js` instead of `rollup/dist/rollup.browser.es.js`

Expand Down
12 changes: 5 additions & 7 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ MIT, ISC, 0BSD
# Bundled dependencies:
## @jridgewell/sourcemap-codec
License: MIT
By: Rich Harris
Repository: git+https://github.com/jridgewell/sourcemap-codec.git
By: Justin Ridgewell
Repository: git+https://github.com/jridgewell/sourcemaps.git

> The MIT License
>
> Copyright (c) 2015 Rich Harris
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
Expand All @@ -40,8 +38,8 @@ Repository: git+https://github.com/jridgewell/sourcemap-codec.git
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.

---------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rollup/browser",
"version": "4.44.1",
"version": "4.44.2",
"description": "Next-generation ES module bundler browser build",
"main": "dist/rollup.browser.js",
"module": "dist/es/rollup.browser.js",
Expand Down
7 changes: 7 additions & 0 deletions docs/configuration-options/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1355,11 +1355,18 @@ import('external2').then(console.log);
console.log(ext_default__default.default);
```

<<<<<<< HEAD
- `"defaultOnly"` 与 `"default"` 类似,但有以下几点区别:

- 禁止命名引入。如果遇到这样的引入,Rollup 会抛出一个错误,即使是 `es` 和 `system` 格式。这样可以确保 `es` 版本的代码能够正确引入 Node 中的非内置 CommonJS 模块。
- 虽然命名空间内再次输出 `export * from 'external';` 不被禁止,但会被忽略掉,并且会导致 Rollup 抛出警告,因为如果没有命名的输出,它们并不会产生影响。
- 当一个命名空间对象生成时,Rollup 将会使用一个更简单的辅助函数。
=======
- `"defaultOnly"` is similar to `"default"` except for the following:
- Named imports are forbidden. If such an import is encountered, Rollup throws an error even in `es` and `system` formats. That way it is ensures that the `es` version of the code is able to import non-builtin CommonJS modules in Node correctly.
- While namespace reexports `export * from 'external';` are not prohibited, they are ignored and will cause Rollup to display a warning because they would not have an effect if there are no named exports.
- When a namespace object is generated, Rollup uses a much simpler helper.
>>>>>>> d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f

下面示例代码展示了 Rollup 产生的内容。注意,我们从代码中删除了 `external.bar`,否则,Rollup 会抛出一个错误,因为如上所述,这等同于一个命名引入。

Expand Down
Loading
Loading