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
import assert from 'node:assert'

// Require
const required = require('./file.json')

// Dynamic Import
const dynamicRes = await import('./file.json')

// Verify both imports work and have the expected structure
assert.strictEqual(required.foo, 'bar')
assert.strictEqual(dynamicRes.default.foo, 'bar')