Migrating from https://github.com/roman01la/webpack-closure-compiler to this plugin.
In standard mode output wrapper is hardcoded like this outputWrapper: '(function(){%s}).call(this || window)',
Not sure how but this affects when there are dynamically loaded chunks are present. All polyfills are injected only in the main chunks and child chunks don't get the polyfills added to them. This causes $jscomp is not defined error in application.
I have already tried below compiler options without any success.
force_inject_library: 'es6_runtime'
isolation_mode: 'NONE'
I tried outputWrapper: '' in the code and that works because now code is not wrapped in IIFE anymore. $jscomp object created is available in the global scope and other chunks can see it.
Since there is no way of sending outputWrapper from outside, how can we work around this. I think bug is somewhere else; because older plugin used to add polyfills in children chunks as well which is not happening with this plugin.
I can create reproducible small project over the weekend if needed.