I just upgraded my website from react-scripts and webpack4 to the latest version of rollup. It took a long time but I finally have a bundle.js in the IIFE format!
However, I’m not sure if thats the correct format I should use. My website’s users are all desktop users, most of whom are probably using a modern browser. Does that mean I should instead use ESM and declare my <script> with the “module” tag? I checked here and saw its pretty widely supported but I’m wondering which format you guys use for your web applications?
submitted by /u/StraightZlat
[link] [comments]