SystemJS's yui loading plugin. Uses the YUI Loader to load YUI modules and exposes them as CJS modules.
For SystemJS use, locate index.js
in the application, and then locate it with map configuration:
System.config({
map: {
yui: "path/to/index.js"
}
});
For installing with jspm, run jspm install systemjs-yui-plugin
.
System.import('my-yui-module!yui').then((module) = > {
console.log(module);
});
Easiest way to test is to start a webserver in the root directory of this NPM module.
cd <path-to-npm>
npm i
python -m SimpleHTTPServer 8000
Navigate to http://localhost:8000/test/index.html. You can confirm that the console said "Hello".