unbuild
unbuild copied to clipboard
π¦ An unified javascript build system
### Environment Node 22.15.0 unbuild 3.4.0 ### Reproduction https://stackblitz.com/edit/node-eufscqik?file=index.ts&terminal=dev ### Describe the bug For a module using arbitrary module namespace identifier names feature (https://github.com/tc39/ecma262/pull/2154), unbuild generates a stub file that...
### Environment Node 22.15.0 unbuild 3.5.0 ### Reproduction https://stackblitz.com/edit/node-vefv5aqh?file=package.json,build.config.ts&terminal=build ### Describe the bug The CJS output has ```js exports.default = d; exports.foo = foo; ``` but the types (`index.d.cts`, `index.d.ts`)...
### Environment ------------------------------ - Operating System: Linux - Node Version: v22.14.0 - Package Manager: [email protected] - Unbuild Version: v3.5.0 ------------------------------ ### Reproduction Any simple dummmy repo with the config: ```ts...
This PR focus on the build validation: - Added "shamefully hoisted dependencies" validation If a package is directly referenced by the source code (not from nested `node_modules`) and isnβt listed...
### Describe the feature Overall coverage is low.  May I write the test code? π ### Additional information - [x] Would you be willing to help implement this feature?
### Describe the feature Should we also warn if users reference shamefully hoisted dependencies? Even if users set `inlineDependencies: true`, but that's still a smell. WDYT π€ https://stackblitz.com/edit/github-oqjdhwwq?file=.npmrc,src%2Findex.ts&startScript=build ### Additional...
Right now, we're generating wrong CJS `d.ts` files based on declaration option and we shoud check the package is **NOT ESM** ; we only need to transform `d.ts` files when...
Same fix as https://github.com/unjs/c12/pull/242
### Environment `[email protected]` ### Reproduction https://stackblitz.com/edit/github-8qb4tr6d?file=package.json&startScript=build ### Describe the bug `lodash` is installed as a dependency but isn't referenced in the source code. The build should warn for this unused...