Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 519 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 519 Bytes

Strongly-Typed Javascript (STJS) Bridge to RequireJS

The STJS bridge to Require.js gives you access to this great library using a Java syntax.

Creating a plugin with This STJS bridge

RequireJSGlobal.define(new RequireJSPlugin() {
	{
		load = (String name, RequireJSNamespace parentRequire, Onload onload, Object config) -> {
			//req has the same API as require().
			parentRequire.$invoke($array(name), (value) -> {
				onload.$invoke(value);
			});
		};
	}
});