API Docs for: 0.2.0
Show:

express-yui_lib_patches_lang-bundles-requires Module

Patches Y.Loader to support langBundles, which enables you to require language bundles easily while define modules.

You can write your modules like this:

YUI.add('name', function (Y) {
    // module code...
}, '0.1', { requires: [], langBundles: ['foo', 'bar'] });

And you can enable the patch like this:

app.yui.patch(require('express-yui/lib/patches/lang-bundles-requires'));

This will guarantee, that the language bundles denotated by file lang/foo and lang/bar will be loaded. Of course, they will be loaded based on the transpiler output, which generates a more complex module name. If you don't use this patch, you will have to use the full name of the generated modules to require them manually in the requires list.