diff options
author | 2022-08-05 14:41:01 -0500 | |
---|---|---|
committer | 2022-08-05 14:41:01 -0500 | |
commit | 36223f663ef73ef4581c4ad93c88666d2e0190e7 (patch) | |
tree | 86cb2ce8b3da30f50801e7a908199626904c0587 /examples/with-vitest/src | |
parent | 23ec87532b57ce694bae2525816f2841e10bb5dd (diff) | |
download | astro-36223f663ef73ef4581c4ad93c88666d2e0190e7.tar.gz astro-36223f663ef73ef4581c4ad93c88666d2e0190e7.tar.zst astro-36223f663ef73ef4581c4ad93c88666d2e0190e7.zip |
Add `getViteConfig` helper (#4154)
* feat: add astro/compat entrypoint for vitest
* chore: add with-vitest example
* chore: add vitest as optional peer dependency
* chore: update lockfile
* refactor: remove astro/compat, use astro/config
* feat: allow arbitrary modes for `create-vite`
* feat: pass vite mode and command when using `getViteConfig`
* chore: remove vitest from peer deps
* chore: add changeset
* chore: update lockfile
Co-authored-by: Nate Moore <nate@astro.build>
Diffstat (limited to 'examples/with-vitest/src')
-rw-r--r-- | examples/with-vitest/src/pages/index.astro | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/with-vitest/src/pages/index.astro b/examples/with-vitest/src/pages/index.astro new file mode 100644 index 000000000..4389d5d25 --- /dev/null +++ b/examples/with-vitest/src/pages/index.astro @@ -0,0 +1,13 @@ +--- +--- + +<html lang="en"> + <head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width" /> + <title>Astro</title> + </head> + <body> + <h1>Astro</h1> + </body> +</html> |