Skip to content

Commit

Permalink
Merge pull request #19 from kucrut/fix-react-refresh-script
Browse files Browse the repository at this point in the history
Fix react refresh script
  • Loading branch information
kucrut authored Oct 7, 2022
2 parents 2989158 + 0020281 commit 2103ba8
Show file tree
Hide file tree
Showing 5 changed files with 981 additions and 948 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-colts-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kucrut/vite-for-wp': patch
---

Fix react-refresh preamble script
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ export default create_config( 'js/src/main.ts', 'js/dist', {

Note that you will need to add them to the `dependencies` array when enqueueing the script (see example above).

## Example plugins

- React: https://github.com/kucrut/vite-for-wp-example-react
- Svelte: https://github.com/kucrut/catatan

## Limitations

Currently, this package doesn't provide HMR support for building editor blocks yet.
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@
"wordpress"
],
"devDependencies": {
"@babel/core": "^7.18.13",
"@changesets/cli": "^2.24.4",
"@types/node": "^18.7.14",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"@wordpress/eslint-plugin": "^13.0.0",
"eslint": "^8.23.0",
"@babel/core": "^7.19.3",
"@changesets/cli": "^2.25.0",
"@types/node": "^18.8.3",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"@wordpress/eslint-plugin": "^13.3.0",
"eslint": "^8.24.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "npm:wp-prettier@^2.6.2",
"typescript": "^4.7.4",
"unbuild": "^0.8.9",
"vite": "^3.0.9"
"typescript": "^4.8.4",
"unbuild": "^0.8.11",
"vite": "^3.1.6"
},
"peerDependencies": {
"vite": "^3.0.9"
"vite": "^3.1.6"
},
"exports": {
".": {
Expand Down
Loading

0 comments on commit 2103ba8

Please sign in to comment.