diff --git a/package.json b/package.json index 6fad0df04..b39779db8 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "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", + "canvas-toBlob": "1.0.0", "copy-webpack-plugin": "4.2.1", "decode-html": "2.0.0", "escape-html": "1.0.3", diff --git a/src/virtual-machine.js b/src/virtual-machine.js index e06bb16dd..6843c5c04 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -18,7 +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'); +require('canvas-toBlob'); const RESERVED_NAMES = ['_mouse_', '_stage_', '_edge_', '_myself_', '_random_'];