MCPcopy
hub / github.com/webpack/webpack / generateNamedMod

Function generateNamedMod

test/benchmarkCases/concatenate-modules/options.mjs:19–21  ·  view source on GitHub ↗

* @param {number} i index * @returns {string} generated code

(i)

Source from the content-addressed store, hash-verified

17 * @returns {string} generated code
18 */
19function generateNamedMod(i) {
20 return `const myVar = ${i}; export { myVar }`;
21}
22
23export async function setup() {
24 const __dirname = dirname(fileURLToPath(import.meta.url));

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected