_base/kernel.config

dojo/_base/kernel.config

Summary

This module defines the user configuration during bootstrap.

By defining user configuration as a module value, an entire configuration can be specified in a build, thereby eliminating the need for sniffing and or explicitly setting in the global variable dojoConfig. Also, when multiple instances of dojo exist in a single application, each will necessarily be located at an unique absolute module identifier as given by the package configuration. Implementing configuration as a module allows for specifying unique, per-instance configurations.

Examples

Example 1

Create a second instance of dojo with a different, instance-unique configuration (assume the loader and dojo.js are already loaded).

// specify a configuration that creates a new instance of dojo at the absolute module identif