Implement as a RequireJS module if available
See original GitHub issueRather than forcing the namespace this would let it work properly with modern good practices - there’s various patterns, but basically if there’s no define
function defined then nothing changes, otherwise it should effectively have define(function(){return ADL;})
- but possibly without using the global namespace at all.
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
RequireJS API
The RequireJS syntax for modules allows them to be loaded as fast as possible, even out of order, but evaluated in the correct...
Read more >How to get started with RequireJS
Inside of main.js, you can use requirejs() to load any other scripts you need to run. This ensures a single entry point, since...
Read more >FAQ: RequireJS Advanced Usage
How can I rename require/define/requirejs?§ 1 · Make sure to use a source version of require.js, not a minified version. · Make sure...
Read more >RequireJS in Node
Yes! The Node adapter for RequireJS, called r.js, will use Node's implementation of require and Node's search paths if the module is not...
Read more >RequireJS
RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Kind of… I ended up having to rewrite most of the structure to mean it can work in both a browser and Node JS environment alike. In the end I just used https://github.com/RusticiSoftware/TinCanJS as it works right out of the box
On Thu, 9 Mar 2017, 5:57 AM Lou Wolford notifications@github.com wrote:
@zapur1 : Have there been any updates to a completed node module with tests?