Files
sweet/packages/plugin-vite/deno.json
T
Eli ab14d1044c refactor(vite): replace old environment APIs (#3634)
I was perusing the code whilst investigating #3606 and noticed that,
despite the release post claiming that Fresh had ["fully
embrace[d]"](https://deno.com/blog/fresh-and-vite#:~:text=fully%20embraces)
the Vite Environment API, it was still using `ssrLoadModule`. Once I
started looking, I noticed a bunch of other code that wasn't
future-proof (env-wise, not rolldown-wise, which'll bring it's own swath
of deprecations[^1]), so I updated them as well.

The newly added source map tests from #3624 currently fail again because
the ModuleRunner API at the heart of the Environment API relies on
[`process.setSourceMapsEnabled`](https://docs.deno.com/api/node/process/~/Process.setSourceMapsEnabled),
which is [currently set to
no-op](https://github.com/denoland/deno/pull/22993) in Deno.

[^1]: Separately tried to try out rolldown-vite but it seems that Deno
doesn't support aliasing dependencies whatsoever? (I know there's not
official support, but I was going to try to edit the lockfile to hack
around it; however, it seems that there's not alias support in there at
all?)
2025-12-09 13:00:36 +01:00

48 lines
1.6 KiB
JSON

{
"name": "@fresh/plugin-vite",
"version": "1.0.8",
"license": "MIT",
"exports": {
".": "./src/mod.ts",
"./client": "./src/client.ts"
},
"publish": {
"include": ["./src", "README.md"]
},
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "preact",
"types": ["vite/client"]
},
"tasks": {
"demo": "vite demo",
"debug": "deno run -A --inspect-brk npm:vite demo",
"demo:build": "vite build demo",
"demo:start": "cd demo && deno serve -A _fresh/server.js"
},
"imports": {
"@babel/core": "npm:@babel/core@^7.28.0",
"@babel/preset-react": "npm:@babel/preset-react@^7.27.1",
"@deno/loader": "jsr:@deno/loader@^0.3.10",
"@marvinh-test/import-json": "jsr:@marvinh-test/import-json@^0.0.1",
"@remix-run/node-fetch-server": "npm:@remix-run/node-fetch-server@^0.12.0",
"@prefresh/vite": "npm:@prefresh/vite@^2.4.8",
"@radix-ui/themes": "npm:@radix-ui/themes@^3.2.1",
"@tailwindcss/vite": "npm:@tailwindcss/vite@^4.1.12",
"@types/babel__core": "npm:@types/babel__core@^7.20.5",
"@types/node": "npm:@types/node@^24.1.0",
"@types/qs": "npm:@types/qs@^6.14.0",
"feed": "npm:feed@^5.1.0",
"fresh": "jsr:@fresh/core@^2.0.0",
"ioredis": "npm:ioredis@^5.7.0",
"mime-db": "npm:mime-db@^1.54.0",
"pg": "npm:pg@^8.16.3",
"preact": "npm:preact@^10.26.9",
"qs": "npm:qs@^6.14.0",
"rollup-plugin-visualizer": "npm:rollup-plugin-visualizer@^6.0.3",
"stripe": "npm:stripe@^19.1.0",
"vite": "npm:vite@^7.1.4",
"vite-plugin-inspect": "npm:vite-plugin-inspect@^11.3.2"
}
}