Skip to content

Commit

Permalink
Fix build with newest vite / esbuild version
Browse files Browse the repository at this point in the history
  • Loading branch information
tennox committed Dec 6, 2022
1 parent c2e2203 commit 8b9da84
Show file tree
Hide file tree
Showing 4 changed files with 392 additions and 316 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A Vite plugin that is essential for developing Vite plugins locally.

It should fix the follow HMR issues for you:
- a valid index.html for local development
- reload the plugin if update is outside of your UI framework's HMR boundary
- reload the plugin and Logseq page on HMR update

## Install

Expand All @@ -15,11 +15,13 @@ It should fix the follow HMR issues for you:
```ts
import logseqPlugin from "vite-plugin-logseq";

// in the plugins session
// in the plugins session:

plugins: [
...,
logseqPlugin()
logseqDevPlugin({
entry: 'src/main.ts' // the main entrypoint file which imports everything and loads the plugin
}),
]
```

Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-logseq",
"version": "0.0.2",
"version": "0.0.3",
"description": "",
"main": "dist/index.js",
"files": [
Expand All @@ -11,15 +11,15 @@
"prepare": "pnpm build"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^9.0.1",
"@types/node": "^14.14.20",
"conventional-changelog-conventionalcommits": "^4.6.3",
"prettier": "^2.0.5",
"semantic-release": "^19.0.2",
"typescript": "^4.0.0",
"vite": "latest"
"@types/node": "^18.11.11",
"conventional-changelog-conventionalcommits": "^5.0.0",
"prettier": "^2.8.0",
"semantic-release": "^19.0.5",
"typescript": "^4.9.3",
"vite": "^3.2.4"
},
"repository": {
"type": "git",
Expand All @@ -32,6 +32,6 @@
},
"homepage": "https://github.com/pengx17/vite-plugin-logseq#readme",
"dependencies": {
"magic-string": "^0.26.1"
"magic-string": "^0.27.0"
}
}
}

0 comments on commit 8b9da84

Please sign in to comment.