Skip to content

Commit

Permalink
chore: add vitePluginLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Apr 24, 2024
1 parent 4aaebca commit 530a3f4
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/react-server/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { createDebug, tinyassert, typedBoolean } from "@hiogawa/utils";
import { $__global } from "./src/global";
import react from "@vitejs/plugin-react";
import { vitePluginSsrMiddleware } from "@hiogawa/vite-plugin-ssr-middleware-alpha";
import { vitePluginLogger } from "@hiogawa/vite-plugin-ssr-middleware";
import {
collectFiles,
createVirtualPlugin,
Expand All @@ -26,6 +27,7 @@ export default defineConfig((_env) => ({
plugins: [
react(),
vitePluginReactServer(),
vitePluginLogger(),
vitePluginSsrMiddleware({
entry: process.env["SERVER_ENTRY"] ?? "/src/adapters/node",
preview: resolve("./dist/server/index.js"),
Expand Down
2 changes: 2 additions & 0 deletions examples/react-ssr-workerd/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import react from "@vitejs/plugin-react";
import { vitePluginWorkerd } from "@hiogawa/vite-plugin-workerd";
import { vitePluginVirtualIndexHtml } from "../react-ssr/vite.config";
import { Log } from "miniflare";
import { vitePluginLogger } from "@hiogawa/vite-plugin-ssr-middleware";

export default defineConfig((_env) => ({
clearScreen: false,
appType: "custom",
plugins: [
react(),
vitePluginLogger(),
vitePluginWorkerd({
entry: "/src/adapters/workerd.ts",
miniflare: {
Expand Down
2 changes: 2 additions & 0 deletions examples/react-ssr/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import { defineConfig, type Plugin, type ViteDevServer } from "vite";
import react from "@vitejs/plugin-react";
import fs from "node:fs";
import { vitePluginSsrMiddleware } from "@hiogawa/vite-plugin-ssr-middleware-alpha";
import { vitePluginLogger } from "@hiogawa/vite-plugin-ssr-middleware";
import { resolve } from "node:path";

export default defineConfig((_env) => ({
clearScreen: false,
appType: "custom",
plugins: [
react(),
vitePluginLogger(),
vitePluginSsrMiddleware({
entry: "/src/adapters/node",
preview: resolve("./dist/server/index.js"),
Expand Down
2 changes: 2 additions & 0 deletions examples/vue-ssr-extra/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { vitePluginWorkerd } from "@hiogawa/vite-plugin-workerd";
import { vitePluginLogger } from "@hiogawa/vite-plugin-ssr-middleware";
import { vitePluginVirtualIndexHtml } from "../react-ssr/vite.config";
import { vitePluginServerAction } from "./src/features/server-action/plugin";
import { Log } from "miniflare";
Expand All @@ -11,6 +12,7 @@ export default defineConfig((_env) => ({
plugins: [
vue(),
vitePluginServerAction(),
vitePluginLogger(),
vitePluginWorkerd({
entry: "/src/adapters/workerd.ts",
miniflare: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"devDependencies": {
"@hattip/adapter-node": "^0.0.44",
"@hiogawa/utils": "1.6.4-pre.1",
"@hiogawa/vite-plugin-ssr-middleware": "^0.0.3",
"@playwright/test": "^1.42.1",
"@tsconfig/strictest": "^2.0.4",
"@types/node": "^20.11.30",
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 530a3f4

Please sign in to comment.