diff --git a/requirejs/require.d.ts b/requirejs/require.d.ts index 5ca4b476a..39c4c3419 100644 --- a/requirejs/require.d.ts +++ b/requirejs/require.d.ts @@ -115,6 +115,19 @@ interface RequireConfig { }; }; + /** + * Allows pointing multiple module IDs to a module ID that contains a bundle of modules. + * + * @example + * requirejs.config({ + * bundles: { + * 'primary': ['main', 'util', 'text', 'text!template.html'], + * 'secondary': ['text!secondary.html'] + * } + * }); + **/ + bundles?: { [key: string]: string[]; }; + /** * AMD configurations, use module.config() to access in * define() functions