Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 60eb656

Browse files
committedNov 6, 2020
⬆️ Update dependencies for V1
1 parent 5e678a8 commit 60eb656

File tree

4 files changed

+975
-1021
lines changed

4 files changed

+975
-1021
lines changed
 

‎.pnp.js

+482-501
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎README.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ export default config;
8282
Finally you have to add a bit of code to your entry point to activate HMR. This might be handled automatically at some point by the plugin but for now it's manual.
8383

8484
```ts
85-
const rootEl = document.getElementById("app");
86-
const dispose = render(() => App, rootEl);
85+
// Those two variables are mandatory if you want automatic HMR
86+
export const rootEl = document.getElementById("app");
87+
export const dispose = render(() => App, rootEl);
88+
89+
// The plugin will automatically inject the following snippet :
8790

8891
// HMR stuff, this will be automatically removed during build
8992
// /!\ You need to add "vite" in the "compilerOptions.types" of your tsconfig.json
@@ -135,17 +138,11 @@ export default config;
135138

136139
For now the only options is to add extra babel config.
137140

138-
## Example
139-
140-
You can checkout the [playground](/playground)
141-
142-
More example will come to full proof the plugin
143-
144141
# Limitations
145142

146143
This is an early version, some things may not work as expected. Please report findings.
147144

148-
- HMR is manual and doesn't hold state on reload
145+
- ~~HMR is manual and doesn't hold state on reload~~
149146
- ESBuild has to be deactivated because of its JSX management which slow downs a bit the reload
150147
- Vite is primarly build for Vue and therefore includes it when installing it
151148

‎package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@amoutonbrady/vite-plugin-solid",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "solid-js integration plugin for vite",
55
"main": "lib/plugin.js",
66
"publishConfig": {
@@ -36,21 +36,21 @@
3636
"vite": "^1.0.0-rc.4 || ^1.0.0"
3737
},
3838
"dependencies": {
39-
"@babel/core": "^7.11.6",
40-
"@babel/preset-typescript": "^7.10.4",
39+
"@babel/core": "^7.12.3",
40+
"@babel/preset-typescript": "^7.12.1",
4141
"@rollup/plugin-babel": "^5.2.1",
42-
"babel-preset-solid": "^0.20.0",
42+
"babel-preset-solid": "^0.21.3",
4343
"dedent": "^0.7.0",
44-
"solid-js": "^0.20.0",
45-
"vite": "^1.0.0-rc.4"
44+
"solid-js": "^0.21.5",
45+
"vite": "^1.0.0-rc.9"
4646
},
4747
"devDependencies": {
48-
"@babel/types": "^7.11.5",
49-
"@types/babel__core": "^7.1.10",
48+
"@babel/types": "^7.12.6",
49+
"@types/babel__core": "^7.1.12",
5050
"@types/dedent": "^0.7.0",
51-
"@types/node": "^14.11.2",
52-
"rollup": "^2.28.2",
51+
"@types/node": "^14.14.6",
52+
"rollup": "^2.33.1",
5353
"source-map": "^0.7.3",
54-
"typescript": "^4.0.3"
54+
"typescript": "^4.0.5"
5555
}
5656
}

‎yarn.lock

+476-500
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.