Skip to content

Commit 155101b

Browse files
committed
fix: update svelte mount usage
1 parent 27fee9e commit 155101b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rsbuild/svelte/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "rsbuild-svelte",
33
"version": "1.0.0",
4+
"type": "module",
45
"private": true,
56
"scripts": {
67
"build": "rsbuild build",

rsbuild/svelte/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import './index.css';
2+
import { mount } from 'svelte';
23
import App from './App.svelte';
34

4-
const app = new App({
5+
const app = mount(App, {
56
target: document.body,
67
props: {
78
name: 'world',

0 commit comments

Comments
 (0)