Add bundles configuration item

bundles option was added in 2.1.10 https://github.com/jrburke/requirejs/commit/c3d5f33a6a0adc43175dd66f12be901816f65566
This commit is contained in:
Lionel Besson
2015-10-08 19:46:15 +02:00
parent d6c98baa7f
commit 0d39cb0d41
+13
View File
@@ -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