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
{{ message }}
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
As soon as you add an preload function to an <script context="module" lang="typescript"> the preload function won't be present in the bundled server.js.
First I thought it is a bug in svelte-preprocess. But I was able to break it down to sapper by creating a simple preprocessor. The preprocessor creates valid js but the preload function will not be present if it was invalid js before the processor.
Describe the bug
As soon as you add an
preload
function to an<script context="module" lang="typescript">
the preload function won't be present in the bundledserver.js
.First I thought it is a bug in svelte-preprocess. But I was able to break it down to
sapper
by creating a simple preprocessor. The preprocessor creates validjs
but thepreload
function will not be present if it was invalidjs
before the processor.See original issue: sveltejs/svelte-preprocess#156
To Reproduce
create a simple preprocessor:
create a route or component with a preload function:
Expected behavior
The reload function in
module
context should be present in the bundledserver.js
Information about your project:
svelte
version 3.22.3sapper
version 0.27.13Severity
I will only be able to use
sapper
as soon as I'm able to use Typescript. So this is actually blocking me from usingsapper
.The text was updated successfully, but these errors were encountered: