-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
standalone mode can't be devDependancy #624
Comments
Sorry for breaking things. The problem is that to run a standalone code, you need a bunch of other dependencies to install. I decided to wrap and reexport only required entities.
The main purpose is to optimize the cold start. @Eomm is that a problem? |
No, it is not - the readme is updated tho I wonder if we have other options to make it fully standalone |
If the standalone code needs Ajv for validation - then no. This way of dealing with it is more flexible. We can use any dep library in the runtime. |
Yeah - there is no clue on this |
The last fastify release fastify/fastify@4.16.0...4.16.3 shows how the standalone mode now requires fjs as a dependency instead of a dev-dependancy because of this requirement:
https://github.com/fastify/fastify/blob/b3ebbdc1ab363233b7728d2bcb4a5b8fe64ccfb3/lib/error-serializer.js#L5
I think the standalone mode was designed to produce a js file that can run without fjs
ref: #617
The text was updated successfully, but these errors were encountered: