-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
You might want to import this library in node, for example for testing. This causes the following error:
TypeError: Cannot read property 'provide' of undefined
Blockly is not using node modules, or javascript modules. It assumes global variables (goog and Blockly) are present. At the moment I worked around this using the imports-loader and exports-loader from webpack. This allows the module to be imported in the browser. It does not work in node at the moment.
Suggestions or PR are welcome.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels