Skip to content
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

fix(dev): use Vite instead of esbuild, also Vitest #416

Merged
merged 9 commits into from
Oct 19, 2023
Merged

Conversation

mkilpatrick
Copy link
Collaborator

This is yet another change in how we generate features/templates. The story have been to use esbuild, then ts-morph, back to esbuild and now Vite. We use the Vite devServer directly to handle compiling the code so we can import the template module to get the config off of it.

This change also replaces Jest with Vitest, which allows the testing of esmodules much more easily. It was also required in order to actually run Vite in some tests.

@mkilpatrick mkilpatrick requested a review from a team as a code owner October 18, 2023 20:49
@jwartofsky-yext jwartofsky-yext self-requested a review October 19, 2023 15:26
Copy link
Contributor

@jwartofsky-yext jwartofsky-yext left a comment

Choose a reason for hiding this comment

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

lgtm

briantstephan
briantstephan previously approved these changes Oct 19, 2023
Copy link
Contributor

@briantstephan briantstephan left a comment

Choose a reason for hiding this comment

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

lgtm

@mkilpatrick mkilpatrick merged commit 67f29eb into main Oct 19, 2023
@mkilpatrick mkilpatrick deleted the vite-features branch October 19, 2023 21:40
asanehisa pushed a commit that referenced this pull request Oct 20, 2023
This is _yet another_ change in how we generate features/templates. The
story have been to use esbuild, then ts-morph, back to esbuild and now
Vite. We use the Vite devServer directly to handle compiling the code so
we can import the template module to get the config off of it.

This change also replaces Jest with Vitest, which allows the testing of
esmodules much more easily. It was also required in order to actually
run Vite in some tests.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@mkilpatrick mkilpatrick mentioned this pull request Oct 23, 2023
1 task
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.

4 participants