UNPKG

raptor

Version:

RaptorJS provides an AMD module loader that works in Node, Rhino and the web browser. It also includes various sub-modules to support building optimized web applications.

13 lines (10 loc) 479 B
var raptor = require('./raptor_server.js').load('rhino'); var RhinoResMgrSearchPathEntryAdapter = raptor.require('raptor/resources/RhinoResMgrSearchPathEntryAdapter'); var resources = raptor.require('raptor/resources'); var searchPath = resources.getSearchPath(); searchPath.addEntry(new RhinoResMgrSearchPathEntryAdapter()); __rhinoHelpers.resources.onResourcesModified(function() { "use strict"; searchPath.publish('modified'); }, this); module.exports = raptor;