38 Commits

Author SHA1 Message Date
Vladimir
0223bb79df
fix(ui): remove "filters" flickering (#6463) 2024-09-09 09:39:19 +02:00
Chris Wheeldon
03208017fb
fix: allow inlining vite's cached dependencies (#6284) 2024-09-04 11:08:29 +02:00
Ben McCann
00dfc1a450
chore: remove unused execa devDependencies (#6294)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-08-09 14:57:32 +02:00
renovate[bot]
f55dc0081d
chore(deps): update all non-major dependencies (#6046)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-07-15 17:10:15 +02:00
Vladimir
80a43d5c7c
fix(browser): inline pretty-format and replace picocolors with tinyrainbow (#6077) 2024-07-10 15:08:44 +02:00
Vladimir
d87bef9611
fix(vite-node): expose all envs from .env file, not just with a prefix VITE_ (#6017) 2024-07-02 10:44:32 +02:00
Vladimir
471cf97b0c
chore: always require curly braces (#5885)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-06-16 18:10:10 +02:00
Vladimir
77f4af6578
chore: update eslint rules (#5721) 2024-05-14 19:25:40 +02:00
Vladimir
7c993e9454
test: standardising internal test (#5600) 2024-04-26 15:43:27 +02:00
Ari Perkkiö
780b187f22
feat(api): startVitest() to accept stdout and stdin (#5493) 2024-04-23 15:09:20 +02:00
Hiroshi Ogawa
23bd3cd2eb
chore: fix test fixture package (#5597) 2024-04-23 12:01:36 +02:00
Hiroshi Ogawa
6fb15280bc
fix(vite-node): fix isValidNodeImport to check "type": "module" first (#5416) 2024-03-26 16:04:48 +01:00
Vladimir
15bbbf8192
fix(vite-node): correctly return cached result (#4870) 2024-01-04 17:40:15 +01:00
Vladimir
cc19117d30
chore: migrate to flat eslint config (#4472) 2023-11-11 08:07:39 +01:00
Dunqing
8715e2cc83 chore: update needed type module 2023-11-10 13:24:26 +01:00
Dunqing
77ea932661
fix(vite-node): mjs files watch not work (#3982) 2023-10-03 13:24:02 +02:00
Vladimir
c9aeac4cf2
feat: running vitest with --related --watch reruns non-affected tests if they were changed during a run (#3844) 2023-07-30 13:07:22 +02:00
Vladimir
711a6249f1
fix(vite-node): correctly resolve hmr filepath (#3834) 2023-07-29 20:34:09 +02:00
Vladimir
54409a2733
chore: improve helpers to test vite-node (#3842) 2023-07-29 19:46:40 +02:00
rxliuli
1cd4eb0f1b
feat(vite-node): make CLI arguments parsing behavior consistent with node/tsx/ts-node (#3574) 2023-07-28 15:17:38 +02:00
rxliuli
b097cef8f4
fix(vite-node): fix errors caused by commonjs export circular references (#3570) 2023-06-15 13:33:03 +02:00
rxliuli
02dc9ea7fc
fix(vite-node): don't remove sourcemap string in source code (#2918) (#3379)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-05-25 11:53:32 +02:00
Anthony Fu
cbb593a8a7
fix(vite-node): circular imports (#3196) 2023-04-15 10:30:51 +02:00
Vladimir
6b1b4e68bf
fix: use relative paths in source map's "sources" field (#3177) 2023-04-11 13:22:54 +02:00
renovate[bot]
0f86ff9897
chore(deps): update all non-major dependencies (#2766)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-06 16:53:03 +02:00
CattChen
5cee4fbf12
fix: stack trace point to incorrect file (#3004) (#3115)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-05 17:38:01 +02:00
Vladimir
45cc34230b
perf: don't resolve import path, if it was already resolved (#2659) 2023-01-16 13:22:39 +01:00
Hyeseong Kim
b4c43cd508
fix: allow assigning new hotContext (#2524)
* Allow assigning new hotContext

* fix lint

* add a regression case
2022-12-19 13:24:41 +03:00
Vladimir
58ee8e9b63
feat!: rewrite how vite-node resolves id (#2463)
* feat!: rewrite how vite-node resolves id

* chore: try to fix global setup test

* fix: remove /@fs/ from filepath

* chore: cleanup

* fix: normalize id for callstack

* fix: don't append "/" before disk drive on windows

* chore: cleanup

* chore: add test that windows drive is not repeated

* fix: dirname uses \\, update windows paths tests

* refactor: rename variables

* fix: don't provide importer only for /@id/

* chore: remove null byte placeholder as part of unwrapRef

* chore: cleanup

* chore: variables renaming

* fix: don't hang on circular mock

* test: update c8 snapshot

* chore: add compatibility layer for users who don't provide resolveId

* test: fix url handling in web worker

* test: fix file tests on windows

* chore: remove unnecessary normalizations in mocker

* chore: use /@fs/ when fetching module, if possible
2022-12-16 15:32:34 +01:00
btea
4f5efdb234
chore: remove cross-env (#2346) 2022-11-21 16:50:58 +01:00
Vladimir
7f55c54e51
fix: respect folders with dot at the start, when mocking (#2244) 2022-10-31 15:17:06 +01:00
yoho
dc00ae7073
feat(vite-node): don't exit on uncaughtException in watch mode (#2186)
* feat: dont exit when uncaughtException

* chore: update

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-10-25 11:31:51 +02:00
Vladimir Sheremet
a59cefc146 chore: extend vite-node timeout 2022-08-04 13:45:28 +03:00
Anthony Fu
7ff551b022 chore: increase test timeout 2022-07-07 16:51:25 +08:00
Anthony Fu
49c67d2573
fix(vite-node): self circular reference (#1609) 2022-07-07 16:39:20 +08:00
yoho
4a95177356
feat(vite-node): vite hmr support (#1516)
* chore: update

* feat: vite-node hmr

* chore: lock.yaml

* chore: update

* chore: update

* chore: update

* feat: hmr module

* chore: package.json

* perf: create ctx only had `__vite_ssr_import_meta__.hot`

* chore: update

* chore: update

* chore: update

* chore: update

* perf: only install hmr plugin on watch mode

* chore: update lock

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-07-02 12:29:52 +03:00
Vladimir
edbf90785e
feat: add vite 3 support (#1561) 2022-06-27 16:24:14 +02:00
Vladimir
406f995aa4
fix: respect transformMode when resolving id (#1506)
* fix: consider transform mode when resolving ids

* test: testing resolveId

* chore: cleanup

* chore: use importer to get transform mode when resolving id

* chore: update lockfile
2022-06-21 12:16:51 +03:00