<?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: ES modules for the modern web in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ES-modules-for-the-modern-web/m-p/666070#M30179</link>
    <description>&lt;P&gt;An ES module packaging would allow my app to load the Dropbox SDK dynamically, using now-standard dynamic module imports, which is beneficial since I only need it for certain situations.&amp;nbsp; I could even use it in a web worker, again loaded dynamically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attempted to use the Dropbox SDK and bundle my app using esbuild.&amp;nbsp; It failed to resolve "crypto" and "utils".&amp;nbsp; Perhaps this is an issue with your package.json, or perhaps your "module" is just an IIFE that assumes other libraries have been defined globally.&amp;nbsp; Since the introduction of ES modules, it is a bad practice to pollute the global namespace, or to rely on global definitions from other libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even Node.js supports ES modules, so older types of modules are not necessary.&amp;nbsp; For more info, see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://auth0.com/blog/javascript-module-systems-showdown/" target="_blank"&gt;https://auth0.com/blog/javascript-module-systems-showdown/&lt;/A&gt;&amp;nbsp; (6 years old)&lt;BR /&gt;&lt;A href="https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/" target="_blank"&gt;https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/&lt;/A&gt;&amp;nbsp; (4 years old)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 01:20:23 GMT</pubDate>
    <dc:creator>scottvorthmann</dc:creator>
    <dc:date>2023-03-08T01:20:23Z</dc:date>
    <item>
      <title>ES modules for the modern web</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ES-modules-for-the-modern-web/m-p/665365#M30177</link>
      <description>&lt;P&gt;All of the examples I've found use outmoded global scripts, and your Javascript SDK is not available in ES module form.&lt;BR /&gt;I suggest you modernize your SDK packaging, and also modernize your examples.&amp;nbsp; Not only will this improve security, but it will also enhance the public perception of Dropbox among web developers.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 01:40:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ES-modules-for-the-modern-web/m-p/665365#M30177</guid>
      <dc:creator>scottvorthmann</dc:creator>
      <dc:date>2023-03-10T01:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: ES modules for the modern web</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ES-modules-for-the-modern-web/m-p/665573#M30178</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1628889"&gt;@scottvorthmann&lt;/a&gt;&lt;/SPAN&gt;, thanks for the message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you clarify this in more detail on how this would affect your workflow and any examples you can provide on what to improve?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 16:34:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ES-modules-for-the-modern-web/m-p/665573#M30178</guid>
      <dc:creator>Jay</dc:creator>
      <dc:date>2023-03-06T16:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: ES modules for the modern web</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ES-modules-for-the-modern-web/m-p/666070#M30179</link>
      <description>&lt;P&gt;An ES module packaging would allow my app to load the Dropbox SDK dynamically, using now-standard dynamic module imports, which is beneficial since I only need it for certain situations.&amp;nbsp; I could even use it in a web worker, again loaded dynamically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attempted to use the Dropbox SDK and bundle my app using esbuild.&amp;nbsp; It failed to resolve "crypto" and "utils".&amp;nbsp; Perhaps this is an issue with your package.json, or perhaps your "module" is just an IIFE that assumes other libraries have been defined globally.&amp;nbsp; Since the introduction of ES modules, it is a bad practice to pollute the global namespace, or to rely on global definitions from other libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even Node.js supports ES modules, so older types of modules are not necessary.&amp;nbsp; For more info, see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://auth0.com/blog/javascript-module-systems-showdown/" target="_blank"&gt;https://auth0.com/blog/javascript-module-systems-showdown/&lt;/A&gt;&amp;nbsp; (6 years old)&lt;BR /&gt;&lt;A href="https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/" target="_blank"&gt;https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/&lt;/A&gt;&amp;nbsp; (4 years old)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 01:20:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ES-modules-for-the-modern-web/m-p/666070#M30179</guid>
      <dc:creator>scottvorthmann</dc:creator>
      <dc:date>2023-03-08T01:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: ES modules for the modern web</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ES-modules-for-the-modern-web/m-p/666737#M30180</link>
      <description>&lt;P&gt;Thanks for the detailed request! I've sent this along to the relevant team.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 22:47:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ES-modules-for-the-modern-web/m-p/666737#M30180</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-09T22:47:45Z</dc:date>
    </item>
  </channel>
</rss>

