<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Question about Bower in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-bower/m-p/641690#M59901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am following documentation '&lt;A href="https://developers.arcgis.com/javascript/jshelp/inside_bower_custom_builds.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Using Bower for Custom Builds of the ArcGIS API for JavaScript&lt;/A&gt;' to understand how to create custom build.&lt;/P&gt;&lt;P&gt;In the sample Esri provided, 4 dependencies are included in the include parameter as dependencies of esri/map in build.profile.js.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;layers: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/dojo': {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boot: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customBase: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include: [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // include the app, set accordingly for your application
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'app/main',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // dependencies of esri/map that will be requested if not included
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojox/gfx/path',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojox/gfx/svg',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojox/gfx/shape',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'esri/dijit/Attribution'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; includeLocales: ['en-us']
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
},&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;esri/map is a dependency of app/main.&lt;/P&gt;&lt;P&gt;So, I do not think dependencies of esri/map is necessary to be included in the parameter when app/main is included.&lt;/P&gt;&lt;P&gt;However, when I deleted dependencies of esri/map and created custom build, these 4 dependencies are dynamically loaded.&lt;/P&gt;&lt;P&gt;Does anyone know why the dependencies of esri/map is required to be included in the parameter if I want to create one single js file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:16:17 GMT</pubDate>
    <dc:creator>AyakoSUZUKI</dc:creator>
    <dc:date>2021-12-12T03:16:17Z</dc:date>
    <item>
      <title>Question about Bower</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-bower/m-p/641690#M59901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am following documentation '&lt;A href="https://developers.arcgis.com/javascript/jshelp/inside_bower_custom_builds.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Using Bower for Custom Builds of the ArcGIS API for JavaScript&lt;/A&gt;' to understand how to create custom build.&lt;/P&gt;&lt;P&gt;In the sample Esri provided, 4 dependencies are included in the include parameter as dependencies of esri/map in build.profile.js.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;layers: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/dojo': {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boot: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customBase: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include: [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // include the app, set accordingly for your application
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'app/main',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // dependencies of esri/map that will be requested if not included
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojox/gfx/path',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojox/gfx/svg',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojox/gfx/shape',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'esri/dijit/Attribution'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; includeLocales: ['en-us']
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
},&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;esri/map is a dependency of app/main.&lt;/P&gt;&lt;P&gt;So, I do not think dependencies of esri/map is necessary to be included in the parameter when app/main is included.&lt;/P&gt;&lt;P&gt;However, when I deleted dependencies of esri/map and created custom build, these 4 dependencies are dynamically loaded.&lt;/P&gt;&lt;P&gt;Does anyone know why the dependencies of esri/map is required to be included in the parameter if I want to create one single js file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-bower/m-p/641690#M59901</guid>
      <dc:creator>AyakoSUZUKI</dc:creator>
      <dc:date>2021-12-12T03:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Bower</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-bower/m-p/641691#M59902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are various modules in the ArcGIS JS API that are dynamically loaded for various reasons. In this case, the &lt;STRONG&gt;dojox&lt;/STRONG&gt; modules are dynamically loaded because the files needed can very based on browser capabilities. When using WebMaps, the API will load most common layer types, but others are dynamically loaded as needed, since the types of layers in a WebMap can vary quite a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the guide we let you know that for this sample, these are the dynamically loaded files you can include in your build. Best practice when your application grows is to do test builds to see what files are dynamically loaded so you can add them to be included in your build script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 19:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-bower/m-p/641691#M59902</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2016-02-11T19:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Bower</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-bower/m-p/641692#M59903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;My understanding of dojo build system is that modules which is included in include parameter and all their dependencies are packed in one file after build compete.&lt;/P&gt;&lt;P&gt;So, when 'app/main' is included in include parameter, 'esri/map', 'esri/dijit/Measurement' and all their dependencies will be together. What I do not understand is that why 4 modules are separately listed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry, but I cannot completely understand your answer.&lt;/P&gt;&lt;P&gt;You mentioned dojox.&lt;/P&gt;&lt;P&gt;Is dojo build system not able to include dojox when it is used as dependencies of a module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 08:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-bower/m-p/641692#M59903</guid>
      <dc:creator>AyakoSUZUKI</dc:creator>
      <dc:date>2016-02-19T08:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Bower</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-bower/m-p/641693#M59904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some files are lazy loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may look something like this when you load a webmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;define(["require", "esri/layers/FeatureLayer", "esri/layers/ArcGISTileMapServiceLayer"], function(require, FL, TL) {
 // code to load the webmap and determine what layers are needed
 if (needImageLayer) {
&amp;nbsp;&amp;nbsp; require([dictionary.ImagerLayer], function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // stuff
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp; }
});&lt;/PRE&gt;&lt;P&gt;That inner require is lazy loading modules that you may or may not need. The build system will not build the files in that inner require statement. There are cases of this throughout the API. This is a case where you need to add the files to the include list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another case that happens for graphics looks something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;define(["has!svg?./gfx/svg:./gfx/vml"], function(graphixType) {});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a loader plugin that will check at runtime if your browser supports SVG or not, if it does, it will load the SVG module, if it does not, it will load an older module to support graphics. This particular case isn't really valid today, but there are plenty of other uses of runtime checks for certain support to load certain files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, you will need to manually add these files to the include list to get a single file build.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:16:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-bower/m-p/641693#M59904</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-12T03:16:19Z</dc:date>
    </item>
  </channel>
</rss>

