GitXplorerGitXplorer
k

rolldown-output-repro1

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
2cf20a2b03cdf276c9f01eb49563f86b6cb8e385

add readme

kkazupon committed 10 months ago
Unverified
8f2f36cc3c35d13f9cef09b0b79cb79492aa6b93

commit first

kkazupon committed 10 months ago

README

The README file for this repository.

rolldown-output-repro1

This repositry is reproduction for rolldown

reproduction step

npm install

npm run build

tree -L 2
.
├── README.md
├── app.js
├── dist
│   ├── app.js
│   └── app.js.map
├── node_modules
│   ├── @rolldown
│   ├── @rollup
│   ├── @types
│   ├── fsevents
│   └── rollup
├── package-lock.json
├── package.json
├── rolldown.js
├── rollup.js
└── rollup_build
    ├── rollup.js
    └── rollup.js.map

9 directories, 10 files

rolldown write output option:

import { rolldown } from '@rolldown/node'

const bundle = await rolldown({
  input: 'app.js',
})

await bundle.write({
  format: 'esm',
  sourcemap: true,
  file: 'rolldown_build/rolldown.js'
})

rolldown cannot output to 'rolldown_build/rolldown.js' with file option.

rollup can ouput with file option.

rolldown write should have the same result as rollup.