You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 16, 2025. It is now read-only.
👋 I'm interested in using GCC with the latest version of Webpack (v5) but there seems to be an internal plugin issue. So far I've upgraded the demos to the latest dependency versions and included the error below. I've also checked to see if there is a v5 working branch but didn't see one. I'm happy to contribute to help get the latest webpack version supported but unsure if there is already work in-progress. Thanks for your time.
I get the following error after upgrading the es5-and-es6 demo:
master:~/sandbox/closure-webpack-plugin/demo/es5-and-es6$ npm run start
> es5-and-es6@1.0.0 start /Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6
> webpack serve --mode=production
/Users/clint/sandbox/closure-webpack-plugin/src/closure-compiler-plugin.js:197
compilation.dependencyTemplates.forEach((val, key) => {
^
TypeError: compilation.dependencyTemplates.forEach is not a function
at ClosureCompilerPlugin.compilation_ (/Users/clint/sandbox/closure-webpack-plugin/src/closure-compiler-plugin.js:197:39)
at /Users/clint/sandbox/closure-webpack-plugin/src/closure-compiler-plugin.js:159:12
at _next31 (eval at create (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:42:1)
at _next9 (eval at create (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:97:1)
at Hook.eval [as call] (eval at create (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:119:1)
at Hook.CALL_DELEGATE [as _call] (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/webpack/lib/Compiler.js:993:26)
at /Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/webpack/lib/Compiler.js:1035:29
at Hook.eval [as callAsync] (eval at create (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/webpack/lib/Compiler.js:1030:28)
at /Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/webpack/lib/Watching.js:132:19
at Hook.eval [as callAsync] (eval at create (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:24:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/tapable/lib/Hook.js:18:14)
at run (/Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/webpack/lib/Watching.js:86:33)
at /Users/clint/sandbox/closure-webpack-plugin/demo/es5-and-es6/node_modules/webpack/lib/Watching.js:82:6
👋 I'm interested in using GCC with the latest version of Webpack (v5) but there seems to be an internal plugin issue. So far I've upgraded the demos to the latest dependency versions and included the error below. I've also checked to see if there is a v5 working branch but didn't see one. I'm happy to contribute to help get the latest webpack version supported but unsure if there is already work in-progress. Thanks for your time.
I get the following error after upgrading the
es5-and-es6demo: