ncc
ncc copied to clipboard
Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
Bumps [web-vitals](https://github.com/GoogleChrome/web-vitals) from 0.2.4 to 3.5.2. Changelog Sourced from web-vitals's changelog. v3.5.2 (2024-01-25) Pick the first non-null target for INP attribution (#421) v3.5.1 (2023-12-27) Add extra guard for PerformanceEventTiming not...
In the latest versions of sharp (e.g. `[email protected]`), ncc no longer includes `sharp-linux-x64.node` or `libvips-cpp.so.42` However, ncc previously included the correct sharp files (e.g. `[email protected]`) Unfortunately, this bug occurs in...
"require is not defined in ES module scope" and mixed require/import using ESM with native modules
I'm trying to compile an ES module (`"type": "module"`) that uses tree-sitter. The compiled distributable winds up `import`ing createRequire as expected, but still tries to load native code via old-fashioned...
If you have a package that uses ESM + relative imports without .js extension, ex: ```typescript export * from './utils' ``` ncc will think that it can't find utils and...
Hi, I hit a problem after migrating from ncc 0.23.0 to 0.27.0. I'm using node 14.15.2. To reproduce: 1. Create an app.js file with the following content: ``` const fs...
I have a repository with a quite a lot of dependencies (node_modules size about 225mb with 625 folders). Code is written in TypeScript. I've noticed that ncc build seems to...
### Issue From AWS SDK for JavaScript v2 [README](https://github.com/aws/aws-sdk-js): > We are formalizing our plans to make the Maintenance Announcement (Phase 2) for AWS SDK for JavaScript v2 in 2023....
When using ncc in a docker build with the `oven/bun` image, the build fails with the following error: ``` 1.687 error: Module build failed (from ../tmp/@vercel/ncc--bunx/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js): 1.687 Error: Could not...
I am using `ncc` to compile my monorepo before deploying to Firebase Functions. While `ncc` works well generally, it incorrectly compiles Firebase parameterized variables, leading to a deployment error. According...
Hi, is there any tree-shaking strategy in ncc, like what bundlers do on front-end applications? I wonder how do you deal with the dynamic "require" while compiling. Thank you.