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
Since 2.0.0 node.js is automatically detected in the env and used if available. This makes it impossible to use Closure Compiler when node.js is available:
Error: optimizer with name of "closure" not found for this environment
I believe there are three solutions:
Add a configuration flag to disable autodetecting node.js
If optimize: 'closure' detected, always use Rhino to prevent the error
Use node.js for tracing dependencies but Rhino for minification if Closure Compiler used (I doubt it's technically possible since that's handled by r.js, but perhaps someone will come up with ideas?)
The text was updated successfully, but these errors were encountered:
I see the behaviour was essentially introduced in commit 26450a8 , the original pull request from @skwakman included the runner config option. Perhaps reconsidering it as an optional flag would be an acceptable solution?
Currently upgrading to 2.0.0 breaks the build for projects that use Closure Compiler in environments with node.js installed.
gfouquet
added a commit
to gfouquet/requirejs-maven-plugin
that referenced
this issue
Nov 6, 2013
Since 2.0.0
node.js
is automatically detected in the env and used if available. This makes it impossible to useClosure Compiler
whennode.js
is available:I believe there are three solutions:
node.js
optimize: 'closure'
detected, always useRhino
to prevent the errornode.js
for tracing dependencies butRhino
for minification if Closure Compiler used (I doubt it's technically possible since that's handled byr.js
, but perhaps someone will come up with ideas?)The text was updated successfully, but these errors were encountered: