You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
notes:
It doesn't work because that signature is not supported. markup etc can be async, but the function creating that object cannot, if you want to pass it to the preprocess property of the rollup plugin or svelte.config.js
But since markup etc can be async you can easily work around that by waiting on common initialisation logic before doing the actual work
If the initialisation is synchronous, you can do it outside the functions. If it is asynchronous, you can just await the init promise, that logic will only run once
The text was updated successfully, but these errors were encountered:
allow pre-processor init to be async
notes:
It doesn't work because that signature is not supported. markup etc can be async, but the function creating that object cannot, if you want to pass it to the preprocess property of the rollup plugin or svelte.config.js
But since markup etc can be async you can easily work around that by waiting on common initialisation logic before doing the actual work
If the initialisation is synchronous, you can do it outside the functions. If it is asynchronous, you can just await the init promise, that logic will only run once
The text was updated successfully, but these errors were encountered: