histoire 0.7.5 → 0.7.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.
@@ -5,13 +5,13 @@ function toRawDeep(val, seen = /* @__PURE__ */ new Set()) {
5
5
  if (typeof unwrappedValue === "symbol") {
6
6
  return unwrappedValue.toString();
7
7
  }
8
+ if (!isObject(unwrappedValue)) {
9
+ return unwrappedValue;
10
+ }
8
11
  if (seen.has(unwrappedValue)) {
9
12
  return Array.isArray(unwrappedValue) ? [] : {};
10
13
  }
11
14
  seen.add(unwrappedValue);
12
- if (!isObject(unwrappedValue)) {
13
- return unwrappedValue;
14
- }
15
15
  if (Array.isArray(unwrappedValue)) {
16
16
  return unwrappedValue.map((value) => toRawDeep(value, seen));
17
17
  }
@@ -5,13 +5,13 @@ export function toRawDeep(val, seen = new Set()) {
5
5
  if (typeof unwrappedValue === 'symbol') {
6
6
  return unwrappedValue.toString();
7
7
  }
8
+ if (!isObject(unwrappedValue)) {
9
+ return unwrappedValue;
10
+ }
8
11
  if (seen.has(unwrappedValue)) {
9
12
  return Array.isArray(unwrappedValue) ? [] : {};
10
13
  }
11
14
  seen.add(unwrappedValue);
12
- if (!isObject(unwrappedValue)) {
13
- return unwrappedValue;
14
- }
15
15
  if (Array.isArray(unwrappedValue)) {
16
16
  return unwrappedValue.map(value => toRawDeep(value, seen));
17
17
  }
package/dist/node/vite.js CHANGED
@@ -54,6 +54,11 @@ export async function getViteConfigWithPlugins(server, ctx) {
54
54
  name: 'histoire-vite-plugin',
55
55
  config() {
56
56
  return {
57
+ resolve: {
58
+ dedupe: [
59
+ 'vue',
60
+ ],
61
+ },
57
62
  optimizeDeps: {
58
63
  disabled: server,
59
64
  entries: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "histoire",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "A fast story book powered by Vite",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,9 +33,9 @@
33
33
  "histoire": "./bin.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@histoire/controls": "^0.7.5",
37
- "@histoire/plugin-vue": "^0.7.5",
38
- "@histoire/shared": "^0.7.5",
36
+ "@histoire/controls": "^0.7.6",
37
+ "@histoire/plugin-vue": "^0.7.6",
38
+ "@histoire/shared": "^0.7.6",
39
39
  "@iconify/vue": "^3.2.1",
40
40
  "@types/markdown-it": "^12.2.3",
41
41
  "@vueuse/core": "^8.2.5",
@@ -9,16 +9,16 @@ export function toRawDeep (val, seen = new Set()) {
9
9
  return unwrappedValue.toString()
10
10
  }
11
11
 
12
+ if (!isObject(unwrappedValue)) {
13
+ return unwrappedValue
14
+ }
15
+
12
16
  if (seen.has(unwrappedValue)) {
13
17
  return Array.isArray(unwrappedValue) ? [] : {}
14
18
  }
15
19
 
16
20
  seen.add(unwrappedValue)
17
21
 
18
- if (!isObject(unwrappedValue)) {
19
- return unwrappedValue
20
- }
21
-
22
22
  if (Array.isArray(unwrappedValue)) {
23
23
  return unwrappedValue.map(value => toRawDeep(value, seen))
24
24
  }
package/src/node/vite.ts CHANGED
@@ -70,6 +70,11 @@ export async function getViteConfigWithPlugins (server: boolean, ctx: Context):
70
70
 
71
71
  config () {
72
72
  return {
73
+ resolve: {
74
+ dedupe: [
75
+ 'vue',
76
+ ],
77
+ },
73
78
  optimizeDeps: {
74
79
  disabled: server,
75
80
  entries: [