We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27fee9e commit 155101bCopy full SHA for 155101b
rsbuild/svelte/package.json
@@ -1,6 +1,7 @@
1
{
2
"name": "rsbuild-svelte",
3
"version": "1.0.0",
4
+ "type": "module",
5
"private": true,
6
"scripts": {
7
"build": "rsbuild build",
rsbuild/svelte/src/index.ts
@@ -1,7 +1,8 @@
import './index.css';
+import { mount } from 'svelte';
import App from './App.svelte';
-const app = new App({
+const app = mount(App, {
target: document.body,
props: {
8
name: 'world',
0 commit comments