UNPKG

@vercel/ncc

Version:

Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.

8 lines (7 loc) 226 B
module.exports = function (input, map) { if (this.cacheable) this.cacheable(); const id = this.resourceQuery.substr(1); input = input.replace('\'UNKNOWN\'', JSON.stringify(id)); this.callback(null, input, map); };