Marvin Hagemeister
8717fb8f77
chore: release @fresh/plugin-vite@0.9.3 ( #3251 )
2025-08-25 16:50:11 +02:00
Marvin Hagemeister
280754ee09
fix(vite): update fresh version dependency ( #3250 )
2025-08-25 15:57:07 +02:00
Marvin Hagemeister
bf25d10a84
fix(vite): support commonjs module.exports assignment ( #3247 )
2025-08-25 08:48:34 +02:00
Marvin Hagemeister
9975d1698f
fix(vite): client hmr ( #3246 )
2025-08-22 15:42:09 +02:00
Marvin Hagemeister
19af779873
chore: release @fresh/plugin-vite@0.9.2 ( #3241 )
2025-08-22 14:03:50 +02:00
Marvin Hagemeister
d1f7d49466
fix(vite): importing node:* builtins ( #3245 )
2025-08-22 13:58:39 +02:00
Marvin Hagemeister
138784a58e
fix(vite): address more commonjs scenarios ( #3244 )
2025-08-22 13:46:15 +02:00
Marvin Hagemeister
5c3fe27046
chore: refactor tests ( #3243 )
2025-08-22 12:14:19 +02:00
Marvin Hagemeister
873c54bd5f
feat(vite): get rid of unnecessary polyfills ( #3242 )
2025-08-22 11:23:57 +02:00
Marvin Hagemeister
27c2910b1d
fix(vite): babel transform being applied for non-js files ( #3238 )
2025-08-21 20:03:00 +02:00
Marvin Hagemeister
85143f3c56
chore: release @fresh/plugin-vite@0.9.1 ( #3235 )
2025-08-21 14:38:05 +02:00
Marvin Hagemeister
105ffe55ee
fix(vite): only transform js-like files in deno loader ( #3234 )
2025-08-21 14:29:13 +02:00
fry69 and Marvin Hagemeister
9f09786b06
feat(vite): read build id from env if present ( #3233 )
...
Fix #3232
Disclaimer: This code was mostly generated by GitHub Copilot agent using
Sonnet-4, but tested and verified by me.
---------
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2025-08-21 13:31:45 +02:00
Marvin Hagemeister
14fe895ba1
chore: release @fresh/plugin-vite@0.9.0 ( #3228 )
...
Doing a bigger version jump because I think it's close to being ready.
2025-08-19 19:56:48 +02:00
Marvin Hagemeister
ffa57be765
fix(vite): partial island loading ( #3226 )
2025-08-19 17:58:17 +02:00
Marvin Hagemeister
afdf5eaf6c
fix(vite): asset handling ( #3225 )
...
This PR reworks asset handling in our vite plugin. Importing assets in
js is now supported.
2025-08-19 16:45:33 +02:00
Marvin Hagemeister
f80d049dca
fix(vite): inline FRESH_PUBLIC_* env vars ( #3221 )
2025-08-16 23:14:03 +02:00
Marvin Hagemeister
59549c9532
fix(vite): npm resolution + cjs + duplicated preact signals ( #3211 )
2025-08-16 19:26:39 +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
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