<?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 How to use a polyfill when creating custom widget in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-use-a-polyfill-when-creating-custom-widget/m-p/874255#M5623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the risk of getting yelled at or standing in a corner with a dunce cap while people point an yell 'noob'.....i recently worked on a custom widget.&amp;nbsp; however, there are a lot of template strings in there.&amp;nbsp; however, IE 11 doesn't support template strings.&amp;nbsp; either i have to go back and remove every back tick or i can try to use a polyfill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, i'd like to use:&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&amp;lt;script&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;src&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.min.js"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&amp;gt;

&lt;/SPAN&gt;&lt;/CODE&gt;i'm not sure where to place it within the widget project.&amp;nbsp; does it go in the html file, etc.&amp;nbsp; i think i may have saw something similar in the doc but i don't remember.&amp;nbsp; thanks in advance&lt;CODE&gt;&lt;SPAN class=""&gt;
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:57:14 GMT</pubDate>
    <dc:creator>NathanB</dc:creator>
    <dc:date>2021-12-12T10:57:14Z</dc:date>
    <item>
      <title>How to use a polyfill when creating custom widget</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-use-a-polyfill-when-creating-custom-widget/m-p/874255#M5623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the risk of getting yelled at or standing in a corner with a dunce cap while people point an yell 'noob'.....i recently worked on a custom widget.&amp;nbsp; however, there are a lot of template strings in there.&amp;nbsp; however, IE 11 doesn't support template strings.&amp;nbsp; either i have to go back and remove every back tick or i can try to use a polyfill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, i'd like to use:&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&amp;lt;script&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;src&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.min.js"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&amp;gt;

&lt;/SPAN&gt;&lt;/CODE&gt;i'm not sure where to place it within the widget project.&amp;nbsp; does it go in the html file, etc.&amp;nbsp; i think i may have saw something similar in the doc but i don't remember.&amp;nbsp; thanks in advance&lt;CODE&gt;&lt;SPAN class=""&gt;
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:57:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-use-a-polyfill-when-creating-custom-widget/m-p/874255#M5623</guid>
      <dc:creator>NathanB</dc:creator>
      <dc:date>2021-12-12T10:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a polyfill when creating custom widget</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-use-a-polyfill-when-creating-custom-widget/m-p/874256#M5624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding polyfill to the resources array within your Web App Builder App.&lt;BR /&gt;An example here:&lt;BR /&gt;&lt;A href="https://github.com/agrc/wfrc-wab-widgets"&gt;https://github.com/agrc/wfrc-wab-widgets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Details: &lt;A href="https://gis.utah.gov/best-practices-for-building-web-appbuilder-widgets/"&gt;https://gis.utah.gov/best-practices-for-building-web-appbuilder-widgets/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or if you want to add custom libraries to a widget then add reference in the widget.js file.&lt;/P&gt;&lt;P&gt;An example here-&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/56567563/adding-custom-libraries-to-a-widget-in-arcgis-web-appabuilder"&gt;https://stackoverflow.com/questions/56567563/adding-custom-libraries-to-a-widget-in-arcgis-web-appabuilder&lt;/A&gt;&lt;/P&gt;&lt;P&gt;polyfill‌&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://community.esri.com/t5/tag/ajax/tg-p"&gt;#ajax&lt;/A&gt;‌ &lt;A href="https://community.esri.com/t5/tag/esri js 4.12/tg-p"&gt;#esri js 4.12&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 09:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-use-a-polyfill-when-creating-custom-widget/m-p/874256#M5624</guid>
      <dc:creator>HarishPalaniappan</dc:creator>
      <dc:date>2020-05-29T09:51:36Z</dc:date>
    </item>
  </channel>
</rss>

