Replies: 1 comment
-
|
I think it will be a good change to only support CJS and ESM and avoid esbuild to have the IIFE browser (window.Agents assignment) compiled file for example. It will be helpful if we can define the importmaps in the library, so the customer doesn't have to, but I think it isn't possible right now, unless I'm missing something. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
We started the Agents-for-js following botbuilder-js, and one of the decisions made at the beginning of the project was to target
commonJSmodule system, as this has been the most compatible format.Now that we are adding Browser support in #398 , I'd like to discuss if we could target
ES6so we can allow importing directly from a CDN - such as unpkg or jsdelivr - with importmaps, without having to produce a bundle with tools like webpack or esbuild.The downside is that we will force everyone on ES6 imports, and
requirestyle wont be supported.To keep compatibility, we can also produce packages targeting CJS and ESM like zod does.
@ceciliaavila @sw-joelmut thoughts?
/c @MattB-msft
Beta Was this translation helpful? Give feedback.
All reactions