When disabling `node_modules` directory in Deno, prefresh plugin transforms files in ~/.cache/deno/npm/registry.npmjs.org/ directory, causing an arcane error to occur: https://github.com/preactjs/prefresh/issues/124 After disabling this transform my site now works on updated fresh version I'm not sure if is the correct way to exclude this, but I don't see any longer pattern that would work here The cache is stored in $XDG_CACHE_HOME/deno/npm/$REGISTRY_HOST, where only deno/npm part seems to be static --------- Co-authored-by: Marvin Hagemeister <marvin@deno.com>
Fresh vite plugin
Vite plugin for Fresh.
Usage
- Run
deno install jsr:@fresh/plugin-vite npm:vite - Ensure that your
deno.jsonhas thefreshimport mapping:
{
"imports": {
"fresh": "jsr:@fresh/core"
}
}
- Update your
vite.config.tsfile:
import { defineConfig } from "vite";
+ import { fresh } from "@fresh/plugin-vite";
export default defineConfig({
plugins: [
+ fresh(),
],
});
- Update your deno tasks respectively:
- Dev:
vite - Build:
vite build
More information on the Fresh documentation .