gamesys / moonshine

A lightweight Lua VM for the browser
http://moonshinejs.org
MIT License
502 stars 35 forks source link

Moonshine prevents load of d3.js #33

Open stuta opened 8 years ago

stuta commented 8 years ago

Hello.

d3.js publishes itself with this way: if (typeof define === "function" && define.amd) this.d3 = d3, define(d3); else if (typeof module === "object" && module.exports) module.exports = d3; else this.d3 = d3;

I load d3.js later than moonshine and moonshine creates module.exports --> d3 will not be defined. Could module.exports be named differently inside moonsine?