Trying to use Goggle's closure compiler on a K/JS module using ADVANCED_OPTIMIZATIONS, I keep getting complaints about 'module' (and 'variable' and 'require'):
wrapper.js:6: ERROR - [JSC_UNDEFINED_VARIABLE] variable module is undeclared
is the standard library. Make sure you include it in your build.
h
hallvard
10/01/2019, 12:06 PM
Oh, I do! My library is already in use and in production, so this is a bit surprising. The problem only arises when I enable ADVANCED_OPTIMIZATIONS, so my fix for now is to wait with this.