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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…