brk_rolldown 0.8.0

Fast JavaScript bundler in Rust, designed for the future of Vite
Documentation
---
source: crates/rolldown_testing/src/integration_test.rs
---
# Assets

## main.js

```js
import assert from "assert";

//#region other.js
const bar$1 = "bar";
const baz$1 = "baz";
const x$1 = "x";
const items$1 = "items";
const p$1 = "p";
const q$1 = "q";
const r$1 = "r";
const s$1 = "s";

//#endregion
//#region main.js
function foo(bar = 1, { baz } = { baz: 2 }, [[[, x = 3] = []] = []] = [], ...items) {
	bar += 1;
	baz += 1;
	x += 1;
	let { p, q } = {
		p: 4,
		q: 5
	};
	let [r, s] = [6, 7];
	p++;
	q += 1;
	r = 7;
	s = 6;
	return bar + baz + x + items.length + p + q + r + s;
}
assert.equal(foo(), 33);
assert.equal(foo(2), 34);
assert.equal(foo(2, { baz: 3 }, [[[99, 10]]], "a", "b", "c"), 45);

//#endregion
```