Scans compiled JS files in srcDir for ?client imports, resolves their browser distributions, and writes them to outputDir with predictable names. Call this from your build plugin before compilation completes.
// webpack plugin:compiler.hooks.beforeCompile.tapPromise('ZibriClientScripts', () => generateClientScripts({ srcDir: './dist', outputDir: './assets' })); Copy
// webpack plugin:compiler.hooks.beforeCompile.tapPromise('ZibriClientScripts', () => generateClientScripts({ srcDir: './dist', outputDir: './assets' }));
Scans compiled JS files in srcDir for ?client imports, resolves their browser distributions, and writes them to outputDir with predictable names. Call this from your build plugin before compilation completes.