diff --git a/package.json b/package.json index 73dde72c0..6fad0df04 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "babel-eslint": "^7.1.1", "babel-loader": "^7.0.0", "babel-preset-es2015": "^6.24.1", + "blueimp-canvas-to-blob": "3.14.0", "buffer-loader": "0.0.1", "copy-webpack-plugin": "4.2.1", "decode-html": "2.0.0", diff --git a/src/virtual-machine.js b/src/virtual-machine.js index 202481a36..e06bb16dd 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -18,6 +18,7 @@ const Variable = require('./engine/variable'); const {loadCostume} = require('./import/load-costume.js'); const {loadSound} = require('./import/load-sound.js'); const {serializeSounds, serializeCostumes} = require('./serialization/serialize-assets'); +require('blueimp-canvas-to-blob'); const RESERVED_NAMES = ['_mouse_', '_stage_', '_edge_', '_myself_', '_random_'];