Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

IIFE vs ES output format #275

Open
xiaohk opened this issue Dec 10, 2021 · 0 comments
Open

IIFE vs ES output format #275

xiaohk opened this issue Dec 10, 2021 · 0 comments

Comments

@xiaohk
Copy link

xiaohk commented Dec 10, 2021

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',

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant