So when importing an external module like so
import GameObjects = module("GameObjects") the outputed JS has this at the top of the file:
var GameObjects = require("./GameObjects") but gives this error when run in chrome:> Uncaught ReferenceError: require is not defined
how do I get by this error?