/* eslint-disable no-unused-vars*/
var profile = {
    basePath: '../src',
    action: 'release',
    cssOptimize: 'comments',
    mini: true,
    optimize: false,
    layerOptimize: false,
    selectorEngine: 'acme',
    layers: {
        'dojo/dojo': {
            include: [
                'dojo/i18n',
                'dojo/domReady',
                'app/packages',
                'app/run',
                'app/App',
                'dojox/gfx/filters',
                'dojox/gfx/path',
                'dojox/gfx/svg',
                'dojox/gfx/svgext',
                'dojox/gfx/shape',
                'esri/layers/ArcGISDynamicMapServiceLayer',
                'esri/layers/LayerDrawingOptions',
                'esri/layers/VectorTileLayerImpl'
            ],
            targetStylesheet: 'app/resources/App.css',
            includeLocales: ['en-us'],
            customBase: true,
            boot: true
        }
    },
    packages: [{
        name: 'moment',
        location: 'moment',
        main: 'moment',
        trees: [
          // don't bother with .hidden, tests, min, src, and templates
          ['.', '.', /(\/\.)|(~$)|(test|txt|src|min|templates)/]
        ],
        resourceTags: {
            amd: function (filename, mid) {
                return /\.js$/.test(filename);
            }
        }
    }],
    staticHasFeatures: {
        // The trace & log APIs are used for debugging the loader, so we don’t need them in the build
        'dojo-trace-api': 0,
        'dojo-log-api': 0,

        // This causes normally private loader data to be exposed for debugging, so we don’t need that either
        'dojo-publish-privates': 0,

        // We’re fully async, so get rid of the legacy loader
        'dojo-sync-loader': 0,

        // dojo-xhr-factory relies on dojo-sync-loader
        'dojo-xhr-factory': 0,

        // We aren’t loading tests in production
        'dojo-test-sniff': 0
    },
    plugins: {
        'xstyle/css': 'xstyle/build/amd-css'
    },
    userConfig: {
        packages: ['app', 'dijit', 'dojox', 'esri']
    }
};

@@ -60,17 +60,16 @@
 Path: '.
-.
 /src',%0A 
@@ -206,24 +206,41 @@
 ne: 'acme',%0A
+    noref: true,%0A
     layers: 
@@ -1391,121 +1391,389 @@
     
-// The trace & log APIs are used for debugging the loader, so we don%E2%80%99t need them in the build%0A        'dojo-trace
+'dojo-trace-api': 0,%0A        'dojo-log-api': 0,%0A        'dojo-publish-privates': 0,%0A        'dojo-sync-loader': 0,%0A        'dojo-xhr-factory': 0,%0A        'dojo-test-sniff': 0,%0A        'extend-esri': 0,%0A        'config-deferredInstrumentation': 0,%0A        'config-dojo-loader-catches': 0,%0A        'config-tlmSiblingOfDojo': 0,%0A        'dojo-amd-factory-scan': 0,%0A        'dojo-combo
 -api
@@ -1792,26 +1792,29 @@
   'dojo-
-lo
+confi
 g-api': 
 0,%0A%0A    
@@ -1809,220 +1809,258 @@
 i': 
-0,%0A%0A
+1,%0A  
       
-  // This causes normally private loader data to be exposed for debugging, so we don%E2%80%99t need that either%0A        'dojo-publish-privates': 0,%0A%0A        // We%E2%80%99re fully async, so get rid of the legacy 
+'dojo-config-require': 0,%0A        'dojo-debug-messages': 0,%0A        'dojo-dom-ready-api': 1,%0A        'dojo-firebug': 0,%0A        'dojo-guarantee-console': 1,%0A        'dojo-has-api': 1,%0A        'dojo-inject-api': 1,%0A        'dojo-
 loader
+': 1,
 %0A   
@@ -2074,34 +2074,33 @@
 ojo-
-sync-loader
+modulePaths
 ': 0,%0A
-%0A
         
 // d
@@ -2099,164 +2099,271 @@
     
-// 
+'
 dojo-
-xhr-factory relies on dojo-sync-loader%0A        'dojo-xhr-factory': 0,%0A%0A        // We aren%E2%80%99t loading tests in production%0A        'dojo-test-sniff': 0
+moduleUrl': 0,%0A        'dojo-requirejs-api': 0,%0A        'dojo-sniff': 1,%0A        'dojo-timeout-api': 0,%0A        'dojo-undef-api': 0,%0A        'dojo-v1x-i18n-Api': 1,%0A        'dom': 1, // eslint-disable-line%0A        'host-browser': 1,%0A        'extend-dojo': 1
 %0A   

update profile from esri example