module.exports “Module is not defined”
RequireJS cannot load CommonJS modules as-is. However, there is a minimal modification you can make to them to load them. You have to wrap them in a define call like this: If you have a bunch of modules you need to convert, or if you are using a third-party library written in the CommonJS pattern … Read more