File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ plugins: [
4040 if (isServer) return {}
4141
4242 return {
43- // Add webpack globals to all chunks to fix worker context issues
44- // This resolves the "__webpack_require__ is not defined" error in web workers
43+ // Inject fallback __webpack_require__ object to prevent web worker errors
4544 plugins: [
4645 new (require (' webpack' ).BannerPlugin )({
4746 banner: `
Original file line number Diff line number Diff line change @@ -101,8 +101,7 @@ const config = {
101101 if ( isServer ) return { }
102102
103103 return {
104- // Add webpack globals to all chunks to fix worker context issues
105- // This resolves the "__webpack_require__ is not defined" error in web workers
104+ // Inject fallback __webpack_require__ object to prevent web worker errors
106105 plugins : [
107106 new ( require ( 'webpack' ) . BannerPlugin ) ( {
108107 banner : `
You can’t perform that action at this time.
0 commit comments