Skip to content

st-js/requirejs-bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);
			});
		};
	}
});
		

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%