mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
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:
parent
73fc111b50
commit
89c60b1a05
11 changed files with 39 additions and 23 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue