Skip to content

Commit

Permalink
fix: inline @vue/devtools-api in vite-node, fix #99
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jun 3, 2022
1 parent b76f6c8 commit 8c83692
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"dependencies": {
"pinia": "^2.0.13",
"vue": "^3.2.31"
"vue": "^3.2.31",
"vue-i18n": "^9.1.10"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.1",
Expand Down
4 changes: 4 additions & 0 deletions examples/vue3/src/histoire.setup.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import './histoire.css'
import { defineSetupVue3 } from 'histoire/client'
import { createPinia } from 'pinia'
import { createI18n } from 'vue-i18n'

export const setupVue3 = defineSetupVue3(({ app }) => {
app.provide('demo', 42)
const pinia = createPinia()
app.use(pinia)

const i18n = createI18n()
app.use(i18n)
})
1 change: 1 addition & 0 deletions packages/histoire/src/node/collect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function useCollectStories (options: UseCollectStoriesOptions, ctx: Conte
deps: {
inline: [
/histoire\/dist/,
/@vue\/devtools-api/,
],
},
})
Expand Down
76 changes: 75 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c83692

Please sign in to comment.