From 0d39cb0d41ef072b73692e39053e11930734dc7c Mon Sep 17 00:00:00 2001 From: Lionel Besson Date: Thu, 8 Oct 2015 17:15:47 +0200 Subject: [PATCH] Add bundles configuration item bundles option was added in 2.1.10 https://github.com/jrburke/requirejs/commit/c3d5f33a6a0adc43175dd66f12be901816f65566 --- requirejs/require.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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