Skip to content

Conversation

@segevfiner
Copy link
Contributor

@segevfiner segevfiner commented May 10, 2025

This is useful when running in environment that
transpile on the fly, such as Jest/Vitest and so
on, which don't handle the dynamic import all that
well.

Checklist

This is useful when running in environment that
transpile on the fly, such as Jest/Vitest and so
on, which don't handle the dynamic import all that
well.
@segevfiner segevfiner marked this pull request as draft May 10, 2025 16:13
@segevfiner segevfiner force-pushed the already-imported-module-in-helper branch from 55ccbc2 to b9e686c Compare May 10, 2025 16:26
@segevfiner segevfiner marked this pull request as ready for review May 10, 2025 19:44
- `args`: is a string or a string array within the same arguments passed to the `fastify-cli` command.
- `pluginOptions`: is an object containing the options provided to the started plugin (eg: `app.js`).
- `serverOptions`: is an object containing the additional options provided to fastify server, similar to the `--options` command line argument
- `serverModule`: is optionally the the already imported main server plugin module, instead of letting the helper import it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `serverModule`: is optionally the the already imported main server plugin module, instead of letting the helper import it.
- `serverModule`: is an optional parameter used to provide the already imported main server plugin module, instead of letting the helper import it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants