Skip to content

Commit 3dfe095

Browse files
authored
chore: remove vite-node from the monorepo (#8761)
1 parent 9f0eccc commit 3dfe095

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+10
-4908
lines changed

AGENTS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Vitest is a next-generation testing framework powered by Vite. This is a monorep
4444

4545
### Core Packages (`packages/`)
4646
- `vitest` - Main testing framework
47-
- `vite-node` - Vite SSR runtime
4847
- `browser` - Browser testing support
4948
- `ui` - Web UI for test results
5049
- `runner` - Test runner core

docs/config/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Color used by CLI and UI can be changed by providing an object with `color` prop
156156

157157
- **Type:** `{ sourcemap?, deps?, ... }`
158158

159-
Vite-Node server options.
159+
Moudle runner options.
160160

161161
#### server.sourcemap
162162

@@ -169,7 +169,7 @@ Inject inline source map to modules.
169169

170170
- **Type:** `{ dumpModules?, loadDumppedModules? }`
171171

172-
Vite-Node debugger options.
172+
Module runner debugger options.
173173

174174
#### server.debug.dumpModules
175175

docs/guide/profiling-test-performance.md

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,6 @@ After the tests have run there should be a `main-profile/*.cpuprofile` file gene
7979
8080
## File transform
8181
82-
In cases where your test transform and collection time is high, you can use `DEBUG=vite-node:*` environment variable to see which files are being transformed and executed by `vite-node`.
83-
84-
```bash
85-
$ DEBUG=vite-node:* vitest --run
86-
87-
RUN v2.1.1 /x/vitest/examples/profiling
88-
89-
vite-node:server:request /x/vitest/examples/profiling/global-setup.ts +0ms
90-
vite-node:client:execute /x/vitest/examples/profiling/global-setup.ts +0ms
91-
vite-node:server:request /x/vitest/examples/profiling/test/prime-number.test.ts +45ms
92-
vite-node:client:execute /x/vitest/examples/profiling/test/prime-number.test.ts +26ms
93-
vite-node:server:request /src/prime-number.ts +9ms
94-
vite-node:client:execute /x/vitest/examples/profiling/src/prime-number.ts +9ms
95-
vite-node:server:request /src/unnecessary-file.ts +6ms
96-
vite-node:client:execute /x/vitest/examples/profiling/src/unnecessary-file.ts +4ms
97-
...
98-
```
99-
10082
This profiling strategy is a good way to identify unnecessary transforms caused by [barrel files](https://vitejs.dev/guide/performance.html#avoid-barrel-files).
10183
If these logs contain files that should not be loaded when your test is run, you might have barrel files that are importing files unnecessarily.
10284
@@ -131,17 +113,15 @@ test('formatter works', () => {
131113
132114
<img src="/module-graph-barrel-file.png" alt="Vitest UI demonstrating barrel file issues" />
133115
134-
To see how files are transformed, you can use `VITE_NODE_DEBUG_DUMP` environment variable to write transformed files in the file system:
116+
To see how files are transformed, you can use `VITEST_DEBUG_DUMP` environment variable to write transformed files in the file system:
135117
136118
```bash
137-
$ VITE_NODE_DEBUG_DUMP=true vitest --run
138-
139-
[vite-node] [debug] dump modules to /x/examples/profiling/.vite-node/dump
119+
$ VITEST_DEBUG_DUMP=true vitest --run
140120
141121
RUN v2.1.1 /x/vitest/examples/profiling
142122
...
143123
144-
$ ls .vite-node/dump/
124+
$ ls .vitest-dump/
145125
_x_examples_profiling_global-setup_ts-1292904907.js
146126
_x_examples_profiling_test_prime-number_test_ts-1413378098.js
147127
_src_prime-number_ts-525172412.js

eslint.config.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,4 @@ export default antfu(
135135
'unicorn/consistent-function-scoping': 'off',
136136
},
137137
},
138-
{
139-
files: [`packages/vite-node/${GLOB_SRC}`],
140-
rules: {
141-
// false positive on "exports" variable
142-
'antfu/no-cjs-exports': 'off',
143-
},
144-
},
145138
)

packages/utils/src/source-map.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ const stackIgnorePatterns: (string | RegExp)[] = [
2020
/\/@vitest\/\w+\/dist\//,
2121
'/vitest/dist/',
2222
'/vitest/src/',
23-
'/vite-node/dist/',
24-
'/vite-node/src/',
2523
'/node_modules/chai/',
2624
'/node_modules/tinyspy/',
2725
'/vite/dist/node/module-runner',

packages/vite-node/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/vite-node/README.md

Lines changed: 0 additions & 193 deletions
This file was deleted.

packages/vite-node/assets/vite-node.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/vite-node/package.json

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)