Given that onMount() of Svelte is a lifecycle function, it seems that onMount() is called once for each component.
However, I found that onMount() is called whenever I modify the code in Svelte REPL.
For example, if you modify the code in Svelte MathJax REPL,
and open the inspector of the browser,
you will find several scripts of the same src attribute are added to the DOM.
Does this only happen in REPL, or also in the production version?
