-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import in service-worker.ts
from $lib
throws
#2321
Comments
I found the issue: Here are the aliases for the client bundle: kit/packages/kit/src/core/build/index.js Lines 169 to 174 in c086b18
Here are the aliases for the server bundle: kit/packages/kit/src/core/build/index.js Lines 484 to 489 in c086b18
And here are the aliases for the service worker: kit/packages/kit/src/core/build/index.js Lines 607 to 611 in c086b18
As you can see, the rollup config for the service worker bundle doesn't include the But I if it is a bug I will happily open a pr. |
Thinking about it, it is problably a bug. |
Describe the bug
If I import this:
in
service-worker.ts
, it throws like this:Why?
System Info
Severity
serious, but I can work around it
The text was updated successfully, but these errors were encountered: