<?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: Help Needed: Minimizing Chunks in Angular Build with ArcGIS Core in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-needed-minimizing-chunks-in-angular-build/m-p/1573397#M86347</link>
    <description>&lt;P&gt;Angular 18+ defaults to using esbuild for production builds. The large number of files is a known issue with Angular, unrelated to the ArcGIS SDK for JavaScript, because of &lt;A href="https://esbuild.github.io/api/#splitting" target="_self"&gt;esbuild code splitting&lt;/A&gt;. We also document this issue here:&amp;nbsp;&lt;A href="https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli#known-issues" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli#known-issues&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In theory, you can still use Webpack with Angular 19, for example: &lt;A href="https://www.npmjs.com/package/@angular-builders/custom-webpack" target="_blank"&gt;https://www.npmjs.com/package/@angular-builders/custom-webpack.&lt;/A&gt; I don't have any experience with that builder, but you might look around. Or maybe another community member with experience can jump in and share their experience.&lt;/P&gt;&lt;P&gt;For the best performance, make sure your server is using HTTP/2 (or &lt;A href="https://caniuse.com/http3" target="_self"&gt;HTTP/3&lt;/A&gt;) and that your browser version(s) are on the SDK's browser support list: &lt;A href="https://developers.arcgis.com/javascript/latest/system-requirements/#supported-browsers" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/system-requirements/#supported-browsers&lt;/A&gt;. Modern browsers are generally quite performant when combined with the latest HTTP protocols.&lt;BR /&gt;&lt;BR /&gt;You can see a comparison of the various build tools and various build/performance numbers here: &lt;A href="https://github.com/Esri/jsapi-resources/blob/main/core-samples/.metrics/4.31.0.csv" target="_blank"&gt;https://github.com/Esri/jsapi-resources/blob/main/core-samples/.metrics/4.31.0.csv&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2025 00:19:01 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2025-01-08T00:19:01Z</dc:date>
    <item>
      <title>Help Needed: Minimizing Chunks in Angular Build with ArcGIS Core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-needed-minimizing-chunks-in-angular-build/m-p/1572269#M86318</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I am using the ArcGIS Core NPM package in my Angular application to create maps and other services. The application runs successfully, and everything works fine during development. However, when I build the application, it generates over 800 chunk files, which significantly impacts performance. I am concerned about this issue when deploying to production. Since I am not using the Webpack NPM package (as it is archived), could you please help me reduce the number of chunks generated during the build process?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Jan 2025 21:41:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-needed-minimizing-chunks-in-angular-build/m-p/1572269#M86318</guid>
      <dc:creator>someswarraomanukonda</dc:creator>
      <dc:date>2025-01-02T21:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed: Minimizing Chunks in Angular Build with ArcGIS Core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-needed-minimizing-chunks-in-angular-build/m-p/1573397#M86347</link>
      <description>&lt;P&gt;Angular 18+ defaults to using esbuild for production builds. The large number of files is a known issue with Angular, unrelated to the ArcGIS SDK for JavaScript, because of &lt;A href="https://esbuild.github.io/api/#splitting" target="_self"&gt;esbuild code splitting&lt;/A&gt;. We also document this issue here:&amp;nbsp;&lt;A href="https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli#known-issues" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli#known-issues&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In theory, you can still use Webpack with Angular 19, for example: &lt;A href="https://www.npmjs.com/package/@angular-builders/custom-webpack" target="_blank"&gt;https://www.npmjs.com/package/@angular-builders/custom-webpack.&lt;/A&gt; I don't have any experience with that builder, but you might look around. Or maybe another community member with experience can jump in and share their experience.&lt;/P&gt;&lt;P&gt;For the best performance, make sure your server is using HTTP/2 (or &lt;A href="https://caniuse.com/http3" target="_self"&gt;HTTP/3&lt;/A&gt;) and that your browser version(s) are on the SDK's browser support list: &lt;A href="https://developers.arcgis.com/javascript/latest/system-requirements/#supported-browsers" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/system-requirements/#supported-browsers&lt;/A&gt;. Modern browsers are generally quite performant when combined with the latest HTTP protocols.&lt;BR /&gt;&lt;BR /&gt;You can see a comparison of the various build tools and various build/performance numbers here: &lt;A href="https://github.com/Esri/jsapi-resources/blob/main/core-samples/.metrics/4.31.0.csv" target="_blank"&gt;https://github.com/Esri/jsapi-resources/blob/main/core-samples/.metrics/4.31.0.csv&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 00:19:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-needed-minimizing-chunks-in-angular-build/m-p/1573397#M86347</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2025-01-08T00:19:01Z</dc:date>
    </item>
  </channel>
</rss>

