Marvin Hagemeister
59549c9532
fix(vite): npm resolution + cjs + duplicated preact signals ( #3211 )
2025-08-16 19:26:39 +02:00
Christian Svensson
71071171ed
test: improve temp dir disposal for CI vs Local ( #3218 )
...
- Cleaning up TMP files in CI is unnecessary, as files are discarded
automatically between runs (except of using cache/artifacts)
- On Windows, `<user>\AppData\Local\Temp\*` files are _not_
automatically removed (see resources below)
This PR should make tests a tiny bit faster in CI by avoiding work, as
well as skipping error messages that might follow.
And running tests locally will now log warnings if temp files fails to
be removed instead of silently continuing.
## Resources
-
https://www.reddit.com/r/windows/comments/yfpbb1/why_arent_windows_temp_files_deleted/
-
https://www.reddit.com/r/WindowsHelp/comments/1f4lgui/why_does_windows_cleanup_miss_temp_folder/?utm_source=chatgpt.com
<img width="1066" height="1065" alt="image"
src="https://github.com/user-attachments/assets/55c98f86-e134-4a2d-86cc-cbab63048c47 "
/>
Partially replaces #2990
2025-08-15 13:30:58 +02:00
Marvin Hagemeister
e05fd10977
chore: release 2.0.0-alpha.58 ( #3217 )
2025-08-12 12:55:38 +02:00
Marvin Hagemeister
fe4a59a88c
feat: support custom server entry ( #3216 )
2025-08-12 12:50:10 +02:00
Marvin Hagemeister
477fcefed4
feat: support inlining FRESH_PUBLIC_ env vars ( #3214 )
...
Fixes https://github.com/denoland/fresh/issues/3213
2025-08-12 12:00:59 +02:00
Marvin Hagemeister
d026375c3e
fix(vite): error when npm package requires json files ( #3210 )
2025-08-08 14:16:38 +02:00
Marvin Hagemeister
1f3f0a48f5
chore: release @fresh/plugin-vite@0.0.3 ( #3209 )
2025-08-08 12:31:34 +02:00
Marvin Hagemeister
9a764ae116
fix: vite resolution + cjs fixes ( #3208 )
2025-08-08 12:27:21 +02:00
Marvin Hagemeister
c97e8226af
chore: release @fresh/plugin-vite@0.0.2 ( #3207 )
2025-08-08 09:36:23 +02:00
Marvin Hagemeister
22ebb2dbfa
fix: support optional static, routes and island dir in vite plugin ( #3206 )
2025-08-08 09:23:38 +02:00
Marvin Hagemeister
0664476e46
fix: workaround vite treating npm: as built-ins ( #3205 )
...
Upstream fix: https://github.com/vitejs/vite/pull/20558
2025-08-08 00:22:54 +02:00
Marvin Hagemeister
a084a2c536
fix: unable to load CommonJS in vite plugin ( #3204 )
...
Vite has an internal check that limits CommonJS detection to only bare
specifier. This doesn't work well together with us resolving npm modules
to absolute file paths.
https://github.com/vitejs/vite/blob/main/packages/vite/src/node/ssr/fetchModule.ts#L46
I've tried re-using our own instance of `@rollup/plugin-commonjs` or
`esbuild` but couldn't get these to work in that setup. The easiest way
seems to be to just write our own CJS -> ESM translation layer.
With a little luck since the Deno ecosystem is heavy into ESM we might
get away with this. In either way this removes one of the two blockers
to using the vite plugin.
2025-08-08 00:04:16 +02:00
Marvin Hagemeister
3d1eb2c346
fix: basePath not working in dev server ( #3202 )
...
Fixes https://github.com/denoland/fresh/issues/3201
2025-08-07 12:38:37 +02:00
Marvin Hagemeister
073bacfbbb
chore: release 2.0.0-alpha.57 ( #3200 )
2025-08-06 17:55:19 +02:00
Marvin Hagemeister
d14d623482
fix: esbuild build-id plugin not loading published package ( #3199 )
2025-08-06 17:52:34 +02:00
Marvin Hagemeister
815b1940e3
chore: restructure repository into packages/ folder ( #3197 )
...
We're having a growing number of packages in this repository. This PR
moves them into a `packages/` directory like it's commonly done in other
projects.
2025-08-06 15:52:45 +02:00