<?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 Re: Angular main.js large file size with ES modules in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-main-js-large-file-size-with-es-modules/m-p/1285439#M81032</link>
    <description>&lt;P&gt;Makes perfect sense. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 20:48:15 GMT</pubDate>
    <dc:creator>ShaneBuscher</dc:creator>
    <dc:date>2023-05-03T20:48:15Z</dc:date>
    <item>
      <title>Angular main.js large file size with ES modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-main-js-large-file-size-with-es-modules/m-p/1285365#M81029</link>
      <description>&lt;P&gt;I'm working on an Angular 14 application which was using AMD modules via the CDN. I recently changed the app to use ES modules instead. The app works properly but I noticed a significant change in the size of main.js from 773 KB (AMD) to 3.9 MB (ES):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShaneBuscher_0-1683137733473.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69779iD914527FCC9E40D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="ShaneBuscher_0-1683137733473.png" alt="ShaneBuscher_0-1683137733473.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShaneBuscher_1-1683137814101.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69780i2B16A37CA62D3817/image-size/large?v=v2&amp;amp;px=999" role="button" title="ShaneBuscher_1-1683137814101.png" alt="ShaneBuscher_1-1683137814101.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I didn't make any other changes. Wondering why the size of main.js increased after converting to ES modules and how to slim it back down?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 18:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-main-js-large-file-size-with-es-modules/m-p/1285365#M81029</guid>
      <dc:creator>ShaneBuscher</dc:creator>
      <dc:date>2023-05-03T18:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Angular main.js large file size with ES modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-main-js-large-file-size-with-es-modules/m-p/1285393#M81030</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9886"&gt;@ShaneBuscher&lt;/a&gt;&amp;nbsp; the size increase is because AMD modules are only being loaded at runtime, and they are not included in the app bundles. The ES modules (@arcgis/core) are being included and bundled along with the app. Here's a bit more info on bundle size: &lt;A href="https://github.com/Esri/jsapi-resources/tree/main/esm-samples#bundle-size-and-performance" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/main/esm-samples#bundle-size-and-performance&lt;/A&gt;. The app will only use the modules that it needs at runtime.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 19:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-main-js-large-file-size-with-es-modules/m-p/1285393#M81030</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2023-05-03T19:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Angular main.js large file size with ES modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-main-js-large-file-size-with-es-modules/m-p/1285439#M81032</link>
      <description>&lt;P&gt;Makes perfect sense. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 20:48:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-main-js-large-file-size-with-es-modules/m-p/1285439#M81032</guid>
      <dc:creator>ShaneBuscher</dc:creator>
      <dc:date>2023-05-03T20:48:15Z</dc:date>
    </item>
  </channel>
</rss>

