brk_rolldown 0.8.0

Fast JavaScript bundler in Rust, designed for the future of Vite
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
import assert from 'node:assert'

const id = Id
const objProp = Obj.prop

assert.strictEqual(id, 'ok')
assert.strictEqual(objProp, 'ok')

// It should not inject shadowed variables.
;(function (Id, Obj) {
  assert.strictEqual(Id, undefined)
  assert.strictEqual(Obj.prop, undefined)
})(undefined, {});