@storybook/builder-vite 7.0.15 → 7.0.17
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.
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +11 -12
package/dist/index.js
CHANGED
|
@@ -144,7 +144,6 @@
|
|
|
144
144
|
}
|
|
145
145
|
`.trim()}async function generatePreviewEntryCode({configDir}){let previewFile=(0,import_core_common6.loadPreviewOrConfigFile)({configDir});return previewFile?`import * as preview from '${slash(previewFile)}';
|
|
146
146
|
export default preview;`:""}async function generateAddonSetupCode(){return`
|
|
147
|
-
import { global } from '@storybook/global';
|
|
148
147
|
import { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
|
|
149
148
|
import { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';
|
|
150
149
|
import { addons } from '@storybook/preview-api';
|
|
@@ -153,7 +152,7 @@
|
|
|
153
152
|
addons.setChannel(channel);
|
|
154
153
|
window.__STORYBOOK_ADDONS_CHANNEL__ = channel;
|
|
155
154
|
|
|
156
|
-
if (
|
|
155
|
+
if (window.CONFIG_TYPE === 'DEVELOPMENT'){
|
|
157
156
|
const serverChannel = createWebSocketChannel({});
|
|
158
157
|
addons.setServerChannel(serverChannel);
|
|
159
158
|
window.__STORYBOOK_SERVER_CHANNEL__ = serverChannel;
|
package/dist/index.mjs
CHANGED
|
@@ -161,7 +161,6 @@ var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(
|
|
|
161
161
|
}
|
|
162
162
|
`.trim()}async function generatePreviewEntryCode({configDir}){let previewFile=loadPreviewOrConfigFile({configDir});return previewFile?`import * as preview from '${slash(previewFile)}';
|
|
163
163
|
export default preview;`:""}async function generateAddonSetupCode(){return `
|
|
164
|
-
import { global } from '@storybook/global';
|
|
165
164
|
import { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
|
|
166
165
|
import { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';
|
|
167
166
|
import { addons } from '@storybook/preview-api';
|
|
@@ -170,7 +169,7 @@ var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(
|
|
|
170
169
|
addons.setChannel(channel);
|
|
171
170
|
window.__STORYBOOK_ADDONS_CHANNEL__ = channel;
|
|
172
171
|
|
|
173
|
-
if (
|
|
172
|
+
if (window.CONFIG_TYPE === 'DEVELOPMENT'){
|
|
174
173
|
const serverChannel = createWebSocketChannel({});
|
|
175
174
|
addons.setServerChannel(serverChannel);
|
|
176
175
|
window.__STORYBOOK_SERVER_CHANNEL__ = serverChannel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-vite",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.17",
|
|
4
4
|
"description": "A plugin to run and build Storybooks with Vite",
|
|
5
5
|
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/lib/builder-vite/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -42,17 +42,16 @@
|
|
|
42
42
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@storybook/channel-postmessage": "7.0.
|
|
46
|
-
"@storybook/channel-websocket": "7.0.
|
|
47
|
-
"@storybook/client-logger": "7.0.
|
|
48
|
-
"@storybook/core-common": "7.0.
|
|
49
|
-
"@storybook/csf-plugin": "7.0.
|
|
50
|
-
"@storybook/global": "^5.0.0",
|
|
45
|
+
"@storybook/channel-postmessage": "7.0.17",
|
|
46
|
+
"@storybook/channel-websocket": "7.0.17",
|
|
47
|
+
"@storybook/client-logger": "7.0.17",
|
|
48
|
+
"@storybook/core-common": "7.0.17",
|
|
49
|
+
"@storybook/csf-plugin": "7.0.17",
|
|
51
50
|
"@storybook/mdx2-csf": "^1.0.0",
|
|
52
|
-
"@storybook/node-logger": "7.0.
|
|
53
|
-
"@storybook/preview": "7.0.
|
|
54
|
-
"@storybook/preview-api": "7.0.
|
|
55
|
-
"@storybook/types": "7.0.
|
|
51
|
+
"@storybook/node-logger": "7.0.17",
|
|
52
|
+
"@storybook/preview": "7.0.17",
|
|
53
|
+
"@storybook/preview-api": "7.0.17",
|
|
54
|
+
"@storybook/types": "7.0.17",
|
|
56
55
|
"browser-assert": "^1.2.1",
|
|
57
56
|
"es-module-lexer": "^0.9.3",
|
|
58
57
|
"express": "^4.17.3",
|
|
@@ -101,5 +100,5 @@
|
|
|
101
100
|
],
|
|
102
101
|
"platform": "node"
|
|
103
102
|
},
|
|
104
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "e26b55b288f5fa815d41843f2405a56961dbb2a7"
|
|
105
104
|
}
|