File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
apps/svelte.dev/src/lib/tutorial/adapters/rollup Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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- */
2522export 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' )
You can’t perform that action at this time.
0 commit comments