https://github.com/daiz/vps-preact-compat-bug
A vite-plugin-ssr bug demonstration with preact/compat
https://github.com/daiz/vps-preact-compat-bug
Last synced: about 1 year ago
JSON representation
A vite-plugin-ssr bug demonstration with preact/compat
- Host: GitHub
- URL: https://github.com/daiz/vps-preact-compat-bug
- Owner: Daiz
- Created: 2022-01-17T13:50:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T15:49:15.000Z (over 4 years ago)
- Last Synced: 2025-02-16T14:48:29.167Z (over 1 year ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vite SSR preact/compat resolve issue
Reproduction repo for [this Vite issue.](https://github.com/vitejs/vite/issues/6542)
## Installation
1. Clone the repo.
2. `npm install`
## Usage
- `npm run dev` to run Vite's own development server. (`vite --port 1337`)
- `npm run vite` to run Vite's own development server initialized via Vite's JS API, [as per Vite docs.](https://vitejs.dev/guide/api-javascript.html)
- `npm run express` to run Vite's development server in `middlewareMode: "ssr"` inside an [express](https://expressjs.com/) server, [as per Vite docs.](https://vitejs.dev/config/#server-middlewaremode)
- `npm run vps` to run Vite's development server with a [vite-plugin-ssr](https://github.com/brillout/vite-plugin-ssr) express setup. This setup comes largely from VPS's init script, with some unnecessary bits for reproduction stripped out. This is the only configuration where the resolve issue manifests.