Skip to content

Commit

Permalink
chore: release vite-plugin-ssr-css v0.0.1 (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Aug 1, 2024
1 parent 51a0605 commit fd4b2d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pkg-pr-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
packages/react-server \
packages/react-server-next \
packages/transforms \
packages/vite-plugin-ssr-middleware
packages/vite-plugin-ssr-middleware \
packages/vite-plugin-ssr-css
4 changes: 4 additions & 0 deletions packages/ssr-css/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.0.1 (2024-07-31)

- fix: handle css virtual module via `ssrLoadModule` ([#589](https://github.com/hi-ogawa/vite-plugins/pull/589))

## v0.0.0

- fix: invalidate virtual module on each direct request ([#304](https://github.com/hi-ogawa/vite-plugins/pull/304))
Expand Down
5 changes: 2 additions & 3 deletions packages/ssr-css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hiogawa/vite-plugin-ssr-css",
"version": "0.0.0",
"version": "0.0.1",
"homepage": "https://github.com/hi-ogawa/vite-plugins/tree/main/packages/ssr-css",
"repository": {
"type": "git",
Expand All @@ -19,8 +19,7 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"prepack": "tsup --clean",
"release": "pnpm publish --no-git-checks --access public"
"prepack": "tsup --clean"
},
"peerDependencies": {
"vite": "*"
Expand Down
2 changes: 2 additions & 0 deletions packages/ssr-css/src/collect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import type { ViteDevServer } from "vite";
// style collection
// https://github.com/remix-run/remix/blob/1a8a5216106bd8c3073cc3e5e5399a32c981db74/packages/remix-dev/vite/styles.ts
// https://github.com/vikejs/vike/blob/f9a91f3c47cab9c2871526ef714cc0f87a41fda0/vike/node/runtime/renderPage/getPageAssets/retrieveAssetsDev.ts
// https://github.com/sveltejs/kit/blob/998edb26d431e4ee4d3b4dc792a86960a85a5b45/packages/kit/src/exports/vite/dev/index.js#L186-L219
// https://github.com/withastro/astro/blob/6aaeec5034cabf6a83e1949ec1ca8f50e7978cc1/packages/astro/src/vite-plugin-astro-server/css.ts

export async function collectStyle(server: ViteDevServer, entries: string[]) {
const urls = await collectStyleUrls(server, entries);
Expand Down

0 comments on commit fd4b2d6

Please sign in to comment.