// src/main.js
import { mount } from 'svelte';
import './app.css';
import App from './App.svelte';
import { setupQWebChannel } from './qwc.js';
import { installEditorBridge } from './editorBridge.js';

const app = mount(App, {
  target: document.getElementById('app'),
});

setupQWebChannel();    // idempotent now
installEditorBridge(); // idempotent now

export default app;
