Skip to content

Commit 7dea493

Browse files
Zenthaekiaking
andauthored
chore: add note about vite integration (#87)
Co-authored-by: Kia King Ishii <[email protected]>
1 parent c0c9e5a commit 7dea493

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# vuex-orm-next [![Unit Test](https://github.com/vuex-orm/vuex-orm-next/workflows/Unit%20Test/badge.svg)](https://github.com/vuex-orm/vuex-orm-next/actions) [![Build](https://github.com/vuex-orm/vuex-orm-next/workflows/Build/badge.svg)](https://github.com/vuex-orm/vuex-orm-next/actions) [![codecov](https://codecov.io/gh/vuex-orm/vuex-orm-next/branch/master/graph/badge.svg)](https://codecov.io/gh/vuex-orm/vuex-orm-next)
22

3+
## Important !
4+
5+
Be sure to disable `useDefineForClassFields` when using `[email protected]+` else `vuex-orm` won't work anymore ! [#4636](https://github.com/vitejs/vite/issues/4636)
6+
7+
`tsconfig.json`
8+
```json
9+
...
10+
"useDefineForClassFields": false,
11+
...
12+
```
13+
314
## Status: Draft
415

516
This repo is for the next iteration of Vuex ORM. It’s in an active development state and we are hoping it is going to be the foundation of the version 1.0.0 release. Any and all feedback is welcome!
@@ -8,6 +19,17 @@ In addition, new documentation is ongoing and can be found at https://next.vuex-
819

920
Join us on our [Slack Channel](https://join.slack.com/t/vuex-orm/shared_invite/enQtNDQ0NjE3NTgyOTY2LTc1YTI2N2FjMGRlNGNmMzBkMGZlMmYxOTgzYzkzZDM2OTQ3OGExZDRkN2FmMGQ1MGJlOWM1NjU0MmRiN2VhYzQ) for any questions and discussions.
1021

22+
## Vite Integration
23+
24+
Make sure to disable `useDefineForClassFields` in `tsconfig.json` when using `vite >= 2.5.0`. See [this issue](https://github.com/vitejs/vite/issues/4636) for more details.
25+
26+
```json
27+
...
28+
"useDefineForClassFields": false,
29+
...
30+
```
31+
32+
1133
## Contribution
1234

1335
Community contributions will be applicable as soon as this repo reaches **alpha** stage.

0 commit comments

Comments
 (0)