@storybook/builder-webpack5 11.0.0-rc.0 → 11.0.0-rc.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRequire as
|
|
1
|
+
import { createRequire as CJS_COMPAT_CREATE_REQUIRE_vy9v2yj2kv } from "node:module";var require = CJS_COMPAT_CREATE_REQUIRE_vy9v2yj2kv(import.meta.url);
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-webpack5",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.2",
|
|
4
4
|
"description": "A Storybook builder to dev and build with Webpack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"!src/**/*"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@storybook/core-webpack": "11.0.0-rc.
|
|
55
|
+
"@storybook/core-webpack": "11.0.0-rc.2",
|
|
56
56
|
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
57
57
|
"cjs-module-lexer": "^1.2.3",
|
|
58
58
|
"css-loader": "^7.1.2",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"typescript": "^6.0.3"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"storybook": "^11.0.0-rc.
|
|
82
|
+
"storybook": "^11.0.0-rc.2"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
85
85
|
"typescript": {
|
|
@@ -2,8 +2,6 @@ import { createBrowserChannel } from 'storybook/internal/channels';
|
|
|
2
2
|
import { STORY_HOT_UPDATED } from 'storybook/internal/core-events';
|
|
3
3
|
import { isPreview } from '{{csfImportPath}}';
|
|
4
4
|
|
|
5
|
-
import { global } from '@storybook/global';
|
|
6
|
-
|
|
7
5
|
import { PreviewWeb, addons, composeConfigs } from 'storybook/preview-api';
|
|
8
6
|
import { importFn } from '{{storiesFilename}}';
|
|
9
7
|
|
|
@@ -22,7 +20,7 @@ const getProjectAnnotations = () => {
|
|
|
22
20
|
const channel = createBrowserChannel({ page: 'preview' });
|
|
23
21
|
addons.setChannel(channel);
|
|
24
22
|
|
|
25
|
-
if (
|
|
23
|
+
if (globalThis.CONFIG_TYPE === 'DEVELOPMENT') {
|
|
26
24
|
window.__STORYBOOK_SERVER_CHANNEL__ = channel;
|
|
27
25
|
}
|
|
28
26
|
|