问题 I'm attempting to upgrade a Rails/Webpacker/ReactOnRails application to webpack 4. I have included a call to environment.splitChunks . That is placing this code: window.webpackJsonp=window.webpackJsonp||[]).push([[11],....... in my bundle. Since this is my server side bundle, window does not exist. Is there a way to completely exclude this bundle from having webpackJsonp added? I have tried these two configurations: environment.splitChunks(); and environment.splitChunks(config => Object