in packages/next/plugin-webpack5-os/src/OSJsonpPlugin.ts [20:34]
apply(compiler: Compiler) {
if (compiler.hooks) {
compiler.hooks.compilation.tap(
'OSJsonpPlugin', // <-- Set a meaningful name here for stacktraces
(compilation) => {
compilation.hooks.processAssets.tap({
name: 'OSJsonpPlugin',
stage: Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE,
}, (chunks) => {
this.wrappChunks(compiler, compilation, chunks);
});
},
);
}
}