@storybook/builder-webpack5 6.5.0-alpha.1 → 6.5.0-alpha.5
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.
|
@@ -55,6 +55,7 @@ var _default = async function _default(options) {
|
|
|
55
55
|
framework = options.framework,
|
|
56
56
|
frameworkPath = options.frameworkPath,
|
|
57
57
|
presets = options.presets,
|
|
58
|
+
previewUrl = options.previewUrl,
|
|
58
59
|
typescriptOptions = options.typescriptOptions,
|
|
59
60
|
modern = options.modern,
|
|
60
61
|
features = options.features,
|
|
@@ -161,6 +162,7 @@ var _default = async function _default(options) {
|
|
|
161
162
|
FRAMEWORK_OPTIONS: frameworkOptions,
|
|
162
163
|
CHANNEL_OPTIONS: coreOptions === null || coreOptions === void 0 ? void 0 : coreOptions.channelOptions,
|
|
163
164
|
FEATURES: features,
|
|
165
|
+
PREVIEW_URL: previewUrl,
|
|
164
166
|
STORIES: stories.map(function (specifier) {
|
|
165
167
|
return _objectSpread(_objectSpread({}, specifier), {}, {
|
|
166
168
|
importPathMatcher: specifier.importPathMatcher.source
|
|
@@ -199,7 +201,7 @@ var _default = async function _default(options) {
|
|
|
199
201
|
'react-dom': _path.default.dirname(require.resolve('react-dom/package.json'))
|
|
200
202
|
}),
|
|
201
203
|
fallback: {
|
|
202
|
-
path:
|
|
204
|
+
path: require.resolve('path-browserify')
|
|
203
205
|
}
|
|
204
206
|
},
|
|
205
207
|
optimization: {
|
|
@@ -33,6 +33,7 @@ export default (async function (options) {
|
|
|
33
33
|
framework = options.framework,
|
|
34
34
|
frameworkPath = options.frameworkPath,
|
|
35
35
|
presets = options.presets,
|
|
36
|
+
previewUrl = options.previewUrl,
|
|
36
37
|
typescriptOptions = options.typescriptOptions,
|
|
37
38
|
modern = options.modern,
|
|
38
39
|
features = options.features,
|
|
@@ -134,6 +135,7 @@ export default (async function (options) {
|
|
|
134
135
|
FRAMEWORK_OPTIONS: frameworkOptions,
|
|
135
136
|
CHANNEL_OPTIONS: coreOptions === null || coreOptions === void 0 ? void 0 : coreOptions.channelOptions,
|
|
136
137
|
FEATURES: features,
|
|
138
|
+
PREVIEW_URL: previewUrl,
|
|
137
139
|
STORIES: stories.map(function (specifier) {
|
|
138
140
|
return _objectSpread(_objectSpread({}, specifier), {}, {
|
|
139
141
|
importPathMatcher: specifier.importPathMatcher.source
|
|
@@ -172,7 +174,7 @@ export default (async function (options) {
|
|
|
172
174
|
'react-dom': path.dirname(require.resolve('react-dom/package.json'))
|
|
173
175
|
}),
|
|
174
176
|
fallback: {
|
|
175
|
-
path:
|
|
177
|
+
path: require.resolve('path-browserify')
|
|
176
178
|
}
|
|
177
179
|
},
|
|
178
180
|
optimization: {
|
|
@@ -33,6 +33,7 @@ export default (async function (options) {
|
|
|
33
33
|
framework = options.framework,
|
|
34
34
|
frameworkPath = options.frameworkPath,
|
|
35
35
|
presets = options.presets,
|
|
36
|
+
previewUrl = options.previewUrl,
|
|
36
37
|
typescriptOptions = options.typescriptOptions,
|
|
37
38
|
modern = options.modern,
|
|
38
39
|
features = options.features,
|
|
@@ -134,6 +135,7 @@ export default (async function (options) {
|
|
|
134
135
|
FRAMEWORK_OPTIONS: frameworkOptions,
|
|
135
136
|
CHANNEL_OPTIONS: coreOptions === null || coreOptions === void 0 ? void 0 : coreOptions.channelOptions,
|
|
136
137
|
FEATURES: features,
|
|
138
|
+
PREVIEW_URL: previewUrl,
|
|
137
139
|
STORIES: stories.map(function (specifier) {
|
|
138
140
|
return _objectSpread(_objectSpread({}, specifier), {}, {
|
|
139
141
|
importPathMatcher: specifier.importPathMatcher.source
|
|
@@ -172,7 +174,7 @@ export default (async function (options) {
|
|
|
172
174
|
'react-dom': path.dirname(require.resolve('react-dom/package.json'))
|
|
173
175
|
}),
|
|
174
176
|
fallback: {
|
|
175
|
-
path:
|
|
177
|
+
path: require.resolve('path-browserify')
|
|
176
178
|
}
|
|
177
179
|
},
|
|
178
180
|
optimization: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-webpack5",
|
|
3
|
-
"version": "6.5.0-alpha.
|
|
3
|
+
"version": "6.5.0-alpha.5",
|
|
4
4
|
"description": "Storybook framework-agnostic API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -60,22 +60,22 @@
|
|
|
60
60
|
"@babel/preset-env": "^7.12.11",
|
|
61
61
|
"@babel/preset-react": "^7.12.10",
|
|
62
62
|
"@babel/preset-typescript": "^7.12.7",
|
|
63
|
-
"@storybook/addons": "6.5.0-alpha.
|
|
64
|
-
"@storybook/api": "6.5.0-alpha.
|
|
65
|
-
"@storybook/channel-postmessage": "6.5.0-alpha.
|
|
66
|
-
"@storybook/channels": "6.5.0-alpha.
|
|
67
|
-
"@storybook/client-api": "6.5.0-alpha.
|
|
68
|
-
"@storybook/client-logger": "6.5.0-alpha.
|
|
69
|
-
"@storybook/components": "6.5.0-alpha.
|
|
70
|
-
"@storybook/core-common": "6.5.0-alpha.
|
|
71
|
-
"@storybook/core-events": "6.5.0-alpha.
|
|
72
|
-
"@storybook/node-logger": "6.5.0-alpha.
|
|
73
|
-
"@storybook/preview-web": "6.5.0-alpha.
|
|
74
|
-
"@storybook/router": "6.5.0-alpha.
|
|
63
|
+
"@storybook/addons": "6.5.0-alpha.5",
|
|
64
|
+
"@storybook/api": "6.5.0-alpha.5",
|
|
65
|
+
"@storybook/channel-postmessage": "6.5.0-alpha.5",
|
|
66
|
+
"@storybook/channels": "6.5.0-alpha.5",
|
|
67
|
+
"@storybook/client-api": "6.5.0-alpha.5",
|
|
68
|
+
"@storybook/client-logger": "6.5.0-alpha.5",
|
|
69
|
+
"@storybook/components": "6.5.0-alpha.5",
|
|
70
|
+
"@storybook/core-common": "6.5.0-alpha.5",
|
|
71
|
+
"@storybook/core-events": "6.5.0-alpha.5",
|
|
72
|
+
"@storybook/node-logger": "6.5.0-alpha.5",
|
|
73
|
+
"@storybook/preview-web": "6.5.0-alpha.5",
|
|
74
|
+
"@storybook/router": "6.5.0-alpha.5",
|
|
75
75
|
"@storybook/semver": "^7.3.2",
|
|
76
|
-
"@storybook/store": "6.5.0-alpha.
|
|
77
|
-
"@storybook/theming": "6.5.0-alpha.
|
|
78
|
-
"@types/node": "^14.0.10",
|
|
76
|
+
"@storybook/store": "6.5.0-alpha.5",
|
|
77
|
+
"@storybook/theming": "6.5.0-alpha.5",
|
|
78
|
+
"@types/node": "^14.0.10 || ^16.0.0",
|
|
79
79
|
"babel-loader": "^8.0.0",
|
|
80
80
|
"babel-plugin-macros": "^3.0.1",
|
|
81
81
|
"babel-plugin-polyfill-corejs3": "^0.1.0",
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
"glob": "^7.1.6",
|
|
87
87
|
"glob-promise": "^3.4.0",
|
|
88
88
|
"html-webpack-plugin": "^5.0.0",
|
|
89
|
+
"path-browserify": "^1.0.1",
|
|
89
90
|
"react-dev-utils": "^11.0.4",
|
|
90
91
|
"stable": "^0.1.8",
|
|
91
92
|
"style-loader": "^2.0.0",
|
|
@@ -117,6 +118,6 @@
|
|
|
117
118
|
"publishConfig": {
|
|
118
119
|
"access": "public"
|
|
119
120
|
},
|
|
120
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "df18f2ad3794d61c59c6458f66f73635502b8963",
|
|
121
122
|
"sbmodern": "dist/modern/index.js"
|
|
122
123
|
}
|