sveltejs/template

IIFE vs ES output format

xiaohk opened this issue · 0 comments

Hello, right now the default output format is iife in the rollup configuration. I am wondering if iife is recommended for Svelte projects comparing to the es module format? I can make the es format work if I add a type='module' in the index.html, but I am not sure about the pros and cons of these two formats.

format: 'iife',