ncc
ncc copied to clipboard
Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
I've set up a reproduction here: https://github.com/nwalters512/ncc-babel-bug-repro. It includes instructions for reproducing. AFAICT, the usage of `_interopRequireDefault` and the `.default` property access on the imported modules means that the usages...
Hi, I've got a very simple repository reproducing my problem: https://github.com/jacek-jablonski/example-ncc/ In my code, I import GitHub library and try to use it: ```ts import github from "@actions/github"; //... const...
Steps to reproduce: - have a yarn workspaces monorepo - have 2 packages in the monorepo - package A has an asset dependency - package B uses package A -...
In a lerna monorepo, if you have `paths` defined in one of the packages `tsconfig`, e.g. ``` ... "paths": { "@common/*": ["common/*"] } ... ``` And you import using those...
For serialport (https://www.npmjs.com/package/serialport) 10, ncc fails with ESM as well (https://github.com/vercel/ncc/issues/899). Furthermore it fails to copy binary assets (*.node). 1. yarn init -y 2. yarn add serialport 3. file `index.cjs`...
lmao go with esm modules and use `import` statements and ncc generates esm code with `eval('require')` so node throws `require is not defined in ES module scope`. drop esm modules...
**An example, 2 simple files:** ```js // source.js const join = require("path").join const UPLOAD_ROOT = UPLOAD_ROOT || "upload" const path = UPLOAD_ROOT + "path" console.log(join(__dirname, "/", UPLOAD_ROOT, path)); ``` ```js...
I'm making a Discord bot with Yarn 3 in Typescript. `ncc` has no problem with Typescript, but it seems that it doesn't account for PNP at all.  If I...
I'm using vercel/ncc to deploy a serverless fn to aws lambda. I noticed an issue with geo-tz, where the fn fails due to the following error: `ENOENT: no such file...
It's impossible to use [`source-map-explorer`](https://npm.im/source-map-explorer) to read the output of an NCC build. ``` ❯ source-map-explorer dist/index.js dist/index.js Your source map refers to generated line 154, but the source only...