Skip to content

Commit 85e3d5c

Browse files
committed
fix: fix the dist not exists in npm package
1 parent a22ce57 commit 85e3d5c

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

README.md

+6-15
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,14 @@
22

33
一个简单的栈路由,适用于手机端。
44

5-
## 文档
5+
## Document
66

77
// TODO
88

9-
## vite
9+
## Example
1010

11-
Uncaught ReferenceError: module is not defined: https://github.com/vitejs/vite/issues/6215
12-
13-
```ts
14-
import react from '@vitejs/plugin-react'
15-
import { defineConfig } from 'vite'
16-
17-
// https://vitejs.dev/config/
18-
export default defineConfig({
19-
plugins: [react()],
20-
optimizeDeps: {
21-
include: ['react/jsx-runtime']
22-
}
23-
})
11+
```sh
12+
pnpm dev
2413
```
14+
15+
See [playground](src/playground/)

0 commit comments

Comments
 (0)