Skip to content

Commit 9005c26

Browse files
committed
tidy up
1 parent e731458 commit 9005c26

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

apps/svelte.dev/src/lib/tutorial/adapters/rollup/index.svelte.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,23 @@ export const state = new (class RollupState {
1010
progress = $state.raw({ value: 0, text: 'initialising' });
1111
bundler = new Bundler({
1212
svelte_version: 'latest',
13-
onstatus(val) {
13+
onstatus: (val) => {
1414
if (!done && val === null) {
1515
done = true;
16-
state.progress = { value: 1, text: 'ready' };
16+
this.progress = { value: 1, text: 'ready' };
1717
}
1818
}
1919
});
2020
})();
2121

22-
/**
23-
* @returns {Promise<import('$lib/tutorial').Adapter>}
24-
*/
2522
export async function create(): Promise<Adapter> {
2623
state.progress = { value: 0.5, text: 'loading svelte compiler' };
2724

2825
/** Paths and contents of the currently loaded file stubs */
2926
let current_files: Item[] = [];
3027

3128
async function compile() {
32-
await state.bundler.bundle(
29+
state.bundler.bundle(
3330
current_files
3431
// TODO we can probably remove all the SvelteKit specific stuff from the tutorial content once this settles down
3532
.filter((f): f is File => f.name.startsWith('/src/lib/') && f.type === 'file')

0 commit comments

Comments
 (0)