histoire 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,8 @@ export function useCollectStories(options, ctx) {
12
12
  deps: {
13
13
  inline: [
14
14
  /histoire\/dist/,
15
+ /@vue\/devtools-api/,
16
+ ...ctx.config.viteNodeInlineDeps ?? [],
15
17
  ],
16
18
  },
17
19
  });
@@ -130,6 +130,10 @@ export interface HistoireConfig {
130
130
  * Vite config override
131
131
  */
132
132
  vite?: ViteConfig | ((config: ViteConfig, env: ViteConfigEnv) => void | ViteConfig | Promise<void | ViteConfig>);
133
+ /**
134
+ * Transpile dependencies when collecting stories on Node.js
135
+ */
136
+ viteNodeInlineDeps?: RegExp[];
133
137
  }
134
138
  export declare type ConfigMode = 'build' | 'dev';
135
139
  export declare function getDefaultConfig(): HistoireConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "histoire",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "A fast story book powered by Vite",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,7 +33,7 @@
33
33
  "histoire": "./bin.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@histoire/controls": "^0.6.5",
36
+ "@histoire/controls": "^0.6.6",
37
37
  "@iconify/vue": "^3.2.1",
38
38
  "@types/markdown-it": "^12.2.3",
39
39
  "@vueuse/core": "^8.2.5",
@@ -24,6 +24,8 @@ export function useCollectStories (options: UseCollectStoriesOptions, ctx: Conte
24
24
  deps: {
25
25
  inline: [
26
26
  /histoire\/dist/,
27
+ /@vue\/devtools-api/,
28
+ ...ctx.config.viteNodeInlineDeps ?? [],
27
29
  ],
28
30
  },
29
31
  })
@@ -149,6 +149,10 @@ export interface HistoireConfig {
149
149
  * Vite config override
150
150
  */
151
151
  vite?: ViteConfig | ((config: ViteConfig, env: ViteConfigEnv) => void | ViteConfig | Promise<void | ViteConfig>)
152
+ /**
153
+ * Transpile dependencies when collecting stories on Node.js
154
+ */
155
+ viteNodeInlineDeps?: RegExp[]
152
156
  }
153
157
 
154
158
  export type ConfigMode = 'build' | 'dev'
@@ -56,6 +56,7 @@ const colors = {
56
56
 
57
57
  module.exports = {
58
58
  ...inheritedConfig,
59
+ prefix: 'htw-',
59
60
  content: [
60
61
  './src/**/*.{vue,js,ts,jsx,tsx,md}',
61
62
  // Include controls CSS directly