mindmup / legacy-mindmup

Legacy MindMup (v1) code

Home Page:https://www.mindmup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Browserify seems to compile it wrong.

netAction opened this issue · comments

npm install mindmup-mapjs
npm install browserify
node ../node_modules/browserify/bin/cmd.js -r mindmup-mapjs > mapjs.js

Firefox throws exception: TypeError: $ is undefined mapjs.js:3807:5

The content of that line:

$.fn.hammer = function(options) {

jQuery is included and starts at line 4041. Maybe the order of the dependencies is wrong?

check out readme from https://github.com/mindmup/mapjs to see how to browserify with all the dependencies