You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
... to replace our "legacy" one. We don't have to remove legacy yet but this opens the door.
The reason to support both RequireJS and CommonJS (our "--modules=node" format) is that RequireJS is to offer more options & compatibility, and require is a wee bit more friendly for browsers (as the code is already wrapped in a "define", the script can be executed directly).
define(function(require){// Load any app-specific modules// with a relative require call,// like:varmessages=require('./messages');// Load library/vendor modules using// full IDs, like:varprint=require('print');print(messages.getHello());// exports are returned here});
The text was updated successfully, but these errors were encountered:
... to replace our "legacy" one. We don't have to remove legacy yet but this opens the door.
The reason to support both RequireJS and CommonJS (our "--modules=node" format) is that RequireJS is to offer more options & compatibility, and require is a wee bit more friendly for browsers (as the code is already wrapped in a "define", the script can be executed directly).
http://requirejs.org/docs/start.html
here's an example app
https://github.com/volojs/create-template/tree/master/www
it looks roughly:
The text was updated successfully, but these errors were encountered: