I'm building an application with phaser and blockly, I already have a functional prototype in plain js but now I'm transfering to node and webpack and don't really know how to do this with blockly, phaser is easy because they already have a node compatible version.
The real problem is to make the bundled code interact with the index.html and get rid of these when building with webpack:
ERROR in ./node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js
Module not found: Error: Can't resolve 'child_process' in 'E:\Projects\Working\phaser-prototype\node_modules\jsdom\lib\jsdom\living'
@ ./node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js 4:22-46
@ ./node_modules/jsdom/lib/jsdom/browser/Window.js
@ ./node_modules/jsdom/lib/api.js
@ ./node_modules/blockly/blockly_node_javascript_en.js
@ ./src/main.js
ERROR in ./node_modules/jsdom/lib/jsdom/browser/resources/resource-loader.js
Module not found: Error: Can't resolve 'fs' in 'E:\Projects\Working\phaser-prototype\node_modules\jsdom\lib\jsdom\browser\resources'
@ ./node_modules/jsdom/lib/jsdom/browser/resources/resource-loader.js 2:11-24
@ ./node_modules/jsdom/lib/api.js
@ ./node_modules/blockly/blockly_node_javascript_en.js
@ ./src/main.js
etc....