Please remove the dependency of referencing Office-JS CDN for Outlook Web Add-ins

Please remove the dependency of referencing Office-JS CDN for Outlook Web Add-ins
0

Upvotes

Upvote

 Mar 12 2024
0 Comments 
New

Please remove the dependency of referencing the Office-JS CDN library for Outlook Web Add-ins. Currently you have to point to a location where the Office-JS library is hosted. It would be ideal if you could install all the necessary files via npm and import the library as a module.

 

Please be considerate of air gapped and tightly secured networks which don't have connectivity to the internet. Even though you can probably find a place to host the add-in files and Office-JS inside the network, it would be best if you can just import the library.

 

I would suggest updating the @microsoft/office-js npm package to be able to import the necessary files. Currently it only downloads static JS files.

 

Documentation: 

  1. Referencing the Office JavaScript API library - Office Add-ins | Microsoft Learn
  2. @microsoft/office-js - npm (npmjs.com)
  3. @microsoft/office-js module not found - Stack Overflow