vite-plugin-storybook-nextjs 3.1.3--canary.76.697aca7.0 → 3.1.4
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.
|
@@ -19,9 +19,6 @@ function noSSR() {
|
|
|
19
19
|
}
|
|
20
20
|
function dynamic(dynamicOptions, options) {
|
|
21
21
|
const loadableFn = Loadable__default.default;
|
|
22
|
-
if (options?.ssr === false) {
|
|
23
|
-
delete options.ssr;
|
|
24
|
-
}
|
|
25
22
|
let loadableOptions = {
|
|
26
23
|
// A loading component is not required, so we default it
|
|
27
24
|
loading: ({ error, isLoading, pastDelay }) => {
|
|
@@ -54,6 +51,11 @@ function dynamic(dynamicOptions, options) {
|
|
|
54
51
|
};
|
|
55
52
|
delete loadableOptions.loadableGenerated;
|
|
56
53
|
}
|
|
54
|
+
if (typeof loadableOptions.ssr === "boolean" && !loadableOptions.ssr) {
|
|
55
|
+
delete loadableOptions.ssr;
|
|
56
|
+
delete loadableOptions.webpack;
|
|
57
|
+
delete loadableOptions.modules;
|
|
58
|
+
}
|
|
57
59
|
return loadableFn({ ...loadableOptions, loader });
|
|
58
60
|
}
|
|
59
61
|
|
|
@@ -10,9 +10,6 @@ function noSSR() {
|
|
|
10
10
|
}
|
|
11
11
|
function dynamic(dynamicOptions, options) {
|
|
12
12
|
const loadableFn = Loadable;
|
|
13
|
-
if (options?.ssr === false) {
|
|
14
|
-
delete options.ssr;
|
|
15
|
-
}
|
|
16
13
|
let loadableOptions = {
|
|
17
14
|
// A loading component is not required, so we default it
|
|
18
15
|
loading: ({ error, isLoading, pastDelay }) => {
|
|
@@ -45,6 +42,11 @@ function dynamic(dynamicOptions, options) {
|
|
|
45
42
|
};
|
|
46
43
|
delete loadableOptions.loadableGenerated;
|
|
47
44
|
}
|
|
45
|
+
if (typeof loadableOptions.ssr === "boolean" && !loadableOptions.ssr) {
|
|
46
|
+
delete loadableOptions.ssr;
|
|
47
|
+
delete loadableOptions.webpack;
|
|
48
|
+
delete loadableOptions.modules;
|
|
49
|
+
}
|
|
48
50
|
return loadableFn({ ...loadableOptions, loader });
|
|
49
51
|
}
|
|
50
52
|
|