Skip to content

Commit

Permalink
feat: enable full hmr support including reload
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskuske committed Oct 4, 2022
1 parent 50ca03b commit a36c311
Show file tree
Hide file tree
Showing 7 changed files with 365 additions and 72 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
shamefully-hoist=true
shell-emulator=true
5 changes: 3 additions & 2 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ export default defineBuildConfig({
'src/node/index',
'src/node/cli',
'src/client/config',
'src/client/plugin',
...!process.env.STUB ? ['src/client/plugin'] : [],
],
clean: true,
clean: !process.env.STUB,
stub: !!process.env.STUB,
declaration: true,
externals: ['rollup'],
failOnWarn: false,
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
"dev": "STUB=true unbuild",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"release": "bumpp --commit --push --tag",
Expand All @@ -70,7 +70,8 @@
"prepare": "simple-git-hooks"
},
"dependencies": {
"@vitejs/plugin-vue2": "^2.0.0",
"@vitejs/plugin-vue2": "2.0.0",
"@vitejs/plugin-vue2-jsx": "1.0.3",
"@vue/compiler-sfc": "^2.7.10",
"cac": "^6.7.14",
"chokidar": "^3.5.3",
Expand Down
Loading

0 comments on commit a36c311

Please sign in to comment.