Loosely couple Node.js code to canvas module.

Treat absence of canvas module like a web worker context.
Relates to #1103
This commit is contained in:
Jürg Lehni 2016-07-12 19:11:09 +02:00
parent 73fc111b50
commit 89c60b1a05
11 changed files with 39 additions and 23 deletions

View file

@ -47,7 +47,7 @@ buildNames.forEach(function(name) {
evaluate: ['src/constants.js'],
setup: function() {
// Return objects to be defined in the preprocess-scope.
// Note that this would be merge in with already existing
// Note that this would be merged in with already existing
// objects.
return {
__options: Object.assign({}, options, buildOptions[name])