How to write typescript modules supporting amd and regular browsers

I want to write reusable components using TypeScript. Therefore, I want people to use AMD modules or people who cannot use my component.

Can I use TypeScript to write modules that support both AMD and browser support as a backup? I know that there is UMD support in TypeScript that supports both AMD and CommonJS, but I did not find a way in my documentation to add backup to regular browser support.

+4
source share
1 answer

TypeScript , AMD, ? , UMD TypeScript, AMD, CommonJS, , .

. - . npm (commonjs) 🌹

0

All Articles