unbuild
unbuild copied to clipboard
📦 An unified javascript build system
### Environment Win 11, WSL2 [email protected] ### Reproduction 1. create project following [usage](https://github.com/unjs/unbuild/tree/main?tab=readme-ov-file#usage) in Ubuntu WSL2 2. run `npx unbuild --stub` ### Describe the bug Output file `dist/index.mjs` have incorrect...
### Describe the change I had a build error : `Inlined implicit external`. And I google it and found [a unocss dev issue](https://github.com/unocss/unocss/issues/1696), which have the similar problem as mine....
Ref: https://github.com/nuxt/module-builder/issues/63 A builder similar to mkdist but copy them as is without any transforms. (We might support small things like ignore patterns)
### Environment Node v18.12.1 PNPM Workspace v8 ### Reproduction This is not super obvious, and I can provide a repro on demand if this is a new and/or unknown scenario....
### Environment Node: v20.11.0 Unbuild: 2.0.0 ### Reproduction Config ``` import * as path from 'node:path' import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ entries: [ { builder: 'mkdist',...
### Describe the feature **Default exports** are not correctly exported from CJS files When creating a package using `unbuild` CJS exports cause [Masquerading as ESM error](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseESM.md) ([example from my lib](https://github.com/levchak0910/css-media-splitter/actions/runs/8031004764/job/21938902948))...
### Environment [email protected] node@^18 ### Reproduction Refer https://github.com/unjs/unbuild/issues/372 ### Describe the bug Even if the content of the `dist/index.mjs` is expected, but the file extension should be `js` not `mjs`...
### 🔗 Linked issue resolve #370 ### ❓ Type of change - [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [x] 🐞 Bug fix (a...
### Environment Node.js: v20.11.0 unbuild: 2.0.0 ### Reproduction https://github.com/unjs/unbuild/blob/bfb4a348421826ad48072ca1cf70973e6caa5b1d/src/builder/rollup.ts#L129-L140 ### Describe the bug Say I have monorepo entirely build with ESM Each package is declared as `"type": "module"` in its...
### Describe the feature Hi there! I've been very interested in trying out the recommended "Passive Watcher" alternative to watching. I was able to find the hidden `unbuild --stub` command...