MCPcopy
hub / github.com/webpack/webpack / render

Method render

lib/library/JsonpLibraryPlugin.js:79–84  ·  view source on GitHub ↗

* Returns source with library export. * @param {Source} source source * @param {RenderContext} renderContext render context * @param {LibraryContext<T>} libraryContext context * @returns {Source} source with library export

(source, { chunk }, { options, compilation })

Source from the content-addressed store, hash-verified

77 * @returns {Source} source with library export
78 */
79 render(source, { chunk }, { options, compilation }) {
80 const name = compilation.getPath(options.name, {
81 chunk
82 });
83 return new ConcatSource(`${name}(`, source, ")");
84 }
85
86 /**
87 * Processes the provided chunk.

Callers

nothing calls this directly

Calls 1

getPathMethod · 0.80

Tested by

no test coverage detected