@storybook/builder-webpack5 6.5.0-alpha.15 → 6.5.0-alpha.19
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/cjs/presets/preview-preset.js +10 -2
- package/dist/cjs/preview/iframe-webpack.config.js +1 -1
- package/dist/cjs/preview/virtualModuleEntry.template.js +1 -0
- package/dist/esm/presets/preview-preset.js +5 -0
- package/dist/esm/preview/iframe-webpack.config.js +1 -1
- package/dist/esm/preview/virtualModuleEntry.template.js +1 -0
- package/dist/modern/presets/preview-preset.js +5 -0
- package/dist/modern/preview/iframe-webpack.config.js +1 -1
- package/dist/modern/preview/virtualModuleEntry.template.js +1 -0
- package/dist/ts3.4/presets/preview-preset.d.ts +1 -0
- package/dist/ts3.9/presets/preview-preset.d.ts +1 -0
- package/package.json +18 -18
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.entries = exports.webpack = void 0;
|
|
6
|
+
exports.babel = exports.entries = exports.webpack = void 0;
|
|
7
7
|
|
|
8
8
|
require("core-js/modules/es.promise.js");
|
|
9
9
|
|
|
@@ -30,4 +30,12 @@ var entries = async function (_, options) {
|
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
exports.entries = entries;
|
|
33
|
+
exports.entries = entries;
|
|
34
|
+
|
|
35
|
+
var babel = async function (config, options) {
|
|
36
|
+
// FIXME: Add this to overrides to only apply to story files
|
|
37
|
+
config.plugins.push('babel-plugin-named-exports-order');
|
|
38
|
+
return config;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
exports.babel = babel;
|
|
@@ -182,7 +182,7 @@ var _default = async function _default(options) {
|
|
|
182
182
|
}), new _webpack.DefinePlugin(_objectSpread(_objectSpread({}, (0, _coreCommon.stringifyProcessEnvs)(envs)), {}, {
|
|
183
183
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
184
184
|
})), new _webpack.ProvidePlugin({
|
|
185
|
-
process: 'process/browser.js'
|
|
185
|
+
process: require.resolve('process/browser.js')
|
|
186
186
|
}), isProd ? null : new _webpack.HotModuleReplacementPlugin(), new _caseSensitivePathsWebpackPlugin.default(), quiet ? null : new _webpack.ProgressPlugin({}), shouldCheckTs ? new _forkTsCheckerWebpackPlugin.default(tsCheckOptions) : null].filter(Boolean),
|
|
187
187
|
module: {
|
|
188
188
|
rules: [babelLoader, (0, _coreCommon.es6Transpiler)(), {
|
|
@@ -14,4 +14,9 @@ export var entries = async function (_, options) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
return result;
|
|
17
|
+
};
|
|
18
|
+
export var babel = async function (config, options) {
|
|
19
|
+
// FIXME: Add this to overrides to only apply to story files
|
|
20
|
+
config.plugins.push('babel-plugin-named-exports-order');
|
|
21
|
+
return config;
|
|
17
22
|
};
|
|
@@ -156,7 +156,7 @@ export default (async function (options) {
|
|
|
156
156
|
}), new DefinePlugin(_objectSpread(_objectSpread({}, stringifyProcessEnvs(envs)), {}, {
|
|
157
157
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
158
158
|
})), new ProvidePlugin({
|
|
159
|
-
process: 'process/browser.js'
|
|
159
|
+
process: require.resolve('process/browser.js')
|
|
160
160
|
}), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
|
|
161
161
|
module: {
|
|
162
162
|
rules: [babelLoader, es6Transpiler(), {
|
|
@@ -14,4 +14,9 @@ export var entries = async function (_, options) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
return result;
|
|
17
|
+
};
|
|
18
|
+
export var babel = async function (config, options) {
|
|
19
|
+
// FIXME: Add this to overrides to only apply to story files
|
|
20
|
+
config.plugins.push('babel-plugin-named-exports-order');
|
|
21
|
+
return config;
|
|
17
22
|
};
|
|
@@ -156,7 +156,7 @@ export default (async function (options) {
|
|
|
156
156
|
}), new DefinePlugin(_objectSpread(_objectSpread({}, stringifyProcessEnvs(envs)), {}, {
|
|
157
157
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
158
158
|
})), new ProvidePlugin({
|
|
159
|
-
process: 'process/browser.js'
|
|
159
|
+
process: require.resolve('process/browser.js')
|
|
160
160
|
}), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
|
|
161
161
|
module: {
|
|
162
162
|
rules: [babelLoader, es6Transpiler(), {
|
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.19",
|
|
4
4
|
"description": "Storybook framework-agnostic API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -60,25 +60,24 @@
|
|
|
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.19",
|
|
64
|
+
"@storybook/api": "6.5.0-alpha.19",
|
|
65
|
+
"@storybook/channel-postmessage": "6.5.0-alpha.19",
|
|
66
|
+
"@storybook/channels": "6.5.0-alpha.19",
|
|
67
|
+
"@storybook/client-api": "6.5.0-alpha.19",
|
|
68
|
+
"@storybook/client-logger": "6.5.0-alpha.19",
|
|
69
|
+
"@storybook/components": "6.5.0-alpha.19",
|
|
70
|
+
"@storybook/core-common": "6.5.0-alpha.19",
|
|
71
|
+
"@storybook/core-events": "6.5.0-alpha.19",
|
|
72
|
+
"@storybook/node-logger": "6.5.0-alpha.19",
|
|
73
|
+
"@storybook/preview-web": "6.5.0-alpha.19",
|
|
74
|
+
"@storybook/router": "6.5.0-alpha.19",
|
|
75
75
|
"@storybook/semver": "^7.3.2",
|
|
76
|
-
"@storybook/store": "6.5.0-alpha.
|
|
77
|
-
"@storybook/theming": "6.5.0-alpha.
|
|
76
|
+
"@storybook/store": "6.5.0-alpha.19",
|
|
77
|
+
"@storybook/theming": "6.5.0-alpha.19",
|
|
78
78
|
"@types/node": "^14.0.10 || ^16.0.0",
|
|
79
79
|
"babel-loader": "^8.0.0",
|
|
80
|
-
"babel-plugin-
|
|
81
|
-
"babel-plugin-polyfill-corejs3": "^0.1.0",
|
|
80
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
82
81
|
"case-sensitive-paths-webpack-plugin": "^2.3.0",
|
|
83
82
|
"core-js": "^3.8.2",
|
|
84
83
|
"css-loader": "^5.0.1",
|
|
@@ -87,6 +86,7 @@
|
|
|
87
86
|
"glob-promise": "^3.4.0",
|
|
88
87
|
"html-webpack-plugin": "^5.0.0",
|
|
89
88
|
"path-browserify": "^1.0.1",
|
|
89
|
+
"process": "^0.11.10",
|
|
90
90
|
"stable": "^0.1.8",
|
|
91
91
|
"style-loader": "^2.0.0",
|
|
92
92
|
"terser-webpack-plugin": "^5.0.3",
|
|
@@ -116,6 +116,6 @@
|
|
|
116
116
|
"publishConfig": {
|
|
117
117
|
"access": "public"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "ce3592fc323ede3d33939b532ff7400cfdc1efa1",
|
|
120
120
|
"sbmodern": "dist/modern/index.js"
|
|
121
121
|
}
|