]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commit
fix: work around vitest `mergeConfig`/`defineConfig` type issues
authorHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 24 Jul 2023 17:33:12 +0000 (01:33 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 24 Jul 2023 17:33:12 +0000 (01:33 +0800)
commitb948832388366c040d7dc7bad30a7daa513c11c3
tree8f512e114dadc5fa7a01c2e0a1b789b880067c88
parentf0e47a666549fe30517b4c4cca81c3cb0e6c7d2e
fix: work around vitest `mergeConfig`/`defineConfig` type issues

Until https://github.com/vitest-dev/vitest/pull/3804 is merged and
released, we can work around the issue by using the exports from `vite`,
they are identical anyway.

In later versions, we should import both `mergeConfig` and
`defineConfig` from `vitest`, though, to better align with their
official documentation.

Fixes #313
Fixes #317
template/config/vitest/vitest.config.js