microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
748 stars 245 forks source link

Control Addin `type="module"` script support #7802

Closed Hugos68 closed 3 months ago

Hugos68 commented 3 months ago

I'm building a Control Addin and wanted to use a few libraries, most of the modern libraries are esm which means they use import and export syntax. Even though browsers support this widely (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), there is no way to specify this with control addins. They are always type="text/javascript" which means they will be treated as CommonJS modules. This really hurts the amount of libraries you can use and makes pretty much working with Control Addin scripts a big painpoint. I would love it if you could somehow specify within the control addin what type of script you're including. This would solve a lot of the problems I'm having with control addins.

kalberes commented 3 months ago

Hi, Please go ahead and post this to our Ideas forum at https://aka.ms/BusinessCentralideas, or vote up the idea if its already there. We're constantly monitoring top Ideas and will consider them for a future release.

Hugos68 commented 3 months ago

Thanks for the swift response, will do!