* 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 })
| 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. |