Declarative RequireJS Path Mapping

The application model now supports declarative requireJS path mapping, using the "requirejs" property.

String values and expressions are supported. Expressions use the normal 'double-brace' convention to indicate it should be evaluated. Expressions cannot make references to application artifacts because evaluation happens before the application is created, but can use Declarative Initialization Parameters.

The "map","paths" and "bundles" sections of the requireJS.config object definition are currently supported:

{
  "applicationModelVersion": "19.3.1",
  "id": "myApp",
  "description": "Big Box FixitFast Technician App",
  "defaultPage": "shell",
  "requirejs": {
    "paths": {
      "myPathPrefix": "some/other/path/prefix",
      "expPrefix": "{{ $initParams.myPrefix + '/somepath' }}"
    }
  },

For more details, see: