-
Notifications
You must be signed in to change notification settings - Fork 926
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
[labs/testing] Add option for worker modules and TypeScript support for SSR worker #4730
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 1961b2d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@augustjk I updated the PR as discussed during the community call. Can I ask you for a review? |
this would be very helpful with the eleventy plugin - we could avoid tsc in eleventy.before and save a lot of time restarting the dev server after one-line changes |
…istering Node.js hooks
…low registering Node.js hooks
…r to allow registering Node.js hooks
…pport for SSR worker
b7a15c6
to
1961b2d
Compare
Closes #3557
This PR adds an option to the
litSsrPlugin
to support TypeScript files. This uses@swc/wasm
for the transpilation. The official Node.js TypeScript integration uses a variant of this without decorator support: https://github.com/nodejs/amaroAdditionally, an option is added to allow defining worker modules, which are sequentially imported at the start of the SSR worker. This allows registering Node.js hooks (https://nodejs.org/api/module.html#customization-hooks) or general setup.