@storybook/builder-webpack5 6.4.12 → 6.4.16
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/preview/iframe-webpack.config.js +2 -4
- package/dist/cjs/preview/virtualModuleEntry.template.js +1 -0
- package/dist/esm/preview/iframe-webpack.config.js +3 -4
- package/dist/esm/preview/virtualModuleEntry.template.js +1 -0
- package/dist/modern/preview/iframe-webpack.config.js +3 -4
- package/dist/modern/preview/virtualModuleEntry.template.js +1 -0
- package/package.json +17 -18
|
@@ -15,8 +15,6 @@ var _htmlWebpackPlugin = _interopRequireDefault(require("html-webpack-plugin"));
|
|
|
15
15
|
|
|
16
16
|
var _caseSensitivePathsWebpackPlugin = _interopRequireDefault(require("case-sensitive-paths-webpack-plugin"));
|
|
17
17
|
|
|
18
|
-
var _WatchMissingNodeModulesPlugin = _interopRequireDefault(require("react-dev-utils/WatchMissingNodeModulesPlugin"));
|
|
19
|
-
|
|
20
18
|
var _terserWebpackPlugin = _interopRequireDefault(require("terser-webpack-plugin"));
|
|
21
19
|
|
|
22
20
|
var _webpackVirtualModules = _interopRequireDefault(require("webpack-virtual-modules"));
|
|
@@ -182,8 +180,8 @@ var _default = async function _default(options) {
|
|
|
182
180
|
}), new _webpack.DefinePlugin(_objectSpread(_objectSpread({}, (0, _coreCommon.stringifyProcessEnvs)(envs)), {}, {
|
|
183
181
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
184
182
|
})), new _webpack.ProvidePlugin({
|
|
185
|
-
process: 'process/browser.js'
|
|
186
|
-
}), isProd ? null : new
|
|
183
|
+
process: require.resolve('process/browser.js')
|
|
184
|
+
}), isProd ? null : new _webpack.HotModuleReplacementPlugin(), new _caseSensitivePathsWebpackPlugin.default(), quiet ? null : new _webpack.ProgressPlugin({}), shouldCheckTs ? new _forkTsCheckerWebpackPlugin.default(tsCheckOptions) : null].filter(Boolean),
|
|
187
185
|
module: {
|
|
188
186
|
rules: [babelLoader, (0, _coreCommon.es6Transpiler)(), {
|
|
189
187
|
test: /\.md$/,
|
|
@@ -10,12 +10,11 @@ import path from 'path';
|
|
|
10
10
|
import { DefinePlugin, HotModuleReplacementPlugin, ProgressPlugin, ProvidePlugin } from 'webpack';
|
|
11
11
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
12
12
|
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
|
|
13
|
-
import WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMissingNodeModulesPlugin';
|
|
14
13
|
import TerserWebpackPlugin from 'terser-webpack-plugin';
|
|
15
14
|
import VirtualModulePlugin from 'webpack-virtual-modules';
|
|
16
15
|
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
|
17
16
|
import themingPaths from '@storybook/theming/paths';
|
|
18
|
-
import { toRequireContextString, es6Transpiler, stringifyProcessEnvs,
|
|
17
|
+
import { toRequireContextString, es6Transpiler, stringifyProcessEnvs, handlebars, interpolate, toImportFn, normalizeStories, readTemplate, loadPreviewOrConfigFile } from '@storybook/core-common';
|
|
19
18
|
import { createBabelLoader } from './babel-loader-preview';
|
|
20
19
|
import { useBaseTsSupport } from './useBaseTsSupport';
|
|
21
20
|
var storybookPaths = ['addons', 'api', 'channels', 'channel-postmessage', 'components', 'core-events', 'router', 'theming', 'semver', 'client-api', 'client-logger'].reduce(function (acc, sbPackage) {
|
|
@@ -155,8 +154,8 @@ export default (async function (options) {
|
|
|
155
154
|
}), new DefinePlugin(_objectSpread(_objectSpread({}, stringifyProcessEnvs(envs)), {}, {
|
|
156
155
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
157
156
|
})), new ProvidePlugin({
|
|
158
|
-
process: 'process/browser.js'
|
|
159
|
-
}), isProd ? null : new
|
|
157
|
+
process: require.resolve('process/browser.js')
|
|
158
|
+
}), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
|
|
160
159
|
module: {
|
|
161
160
|
rules: [babelLoader, es6Transpiler(), {
|
|
162
161
|
test: /\.md$/,
|
|
@@ -10,12 +10,11 @@ import path from 'path';
|
|
|
10
10
|
import { DefinePlugin, HotModuleReplacementPlugin, ProgressPlugin, ProvidePlugin } from 'webpack';
|
|
11
11
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
12
12
|
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
|
|
13
|
-
import WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMissingNodeModulesPlugin';
|
|
14
13
|
import TerserWebpackPlugin from 'terser-webpack-plugin';
|
|
15
14
|
import VirtualModulePlugin from 'webpack-virtual-modules';
|
|
16
15
|
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
|
17
16
|
import themingPaths from '@storybook/theming/paths';
|
|
18
|
-
import { toRequireContextString, es6Transpiler, stringifyProcessEnvs,
|
|
17
|
+
import { toRequireContextString, es6Transpiler, stringifyProcessEnvs, handlebars, interpolate, toImportFn, normalizeStories, readTemplate, loadPreviewOrConfigFile } from '@storybook/core-common';
|
|
19
18
|
import { createBabelLoader } from './babel-loader-preview';
|
|
20
19
|
import { useBaseTsSupport } from './useBaseTsSupport';
|
|
21
20
|
var storybookPaths = ['addons', 'api', 'channels', 'channel-postmessage', 'components', 'core-events', 'router', 'theming', 'semver', 'client-api', 'client-logger'].reduce(function (acc, sbPackage) {
|
|
@@ -155,8 +154,8 @@ export default (async function (options) {
|
|
|
155
154
|
}), new DefinePlugin(_objectSpread(_objectSpread({}, stringifyProcessEnvs(envs)), {}, {
|
|
156
155
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
157
156
|
})), new ProvidePlugin({
|
|
158
|
-
process: 'process/browser.js'
|
|
159
|
-
}), isProd ? null : new
|
|
157
|
+
process: require.resolve('process/browser.js')
|
|
158
|
+
}), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
|
|
160
159
|
module: {
|
|
161
160
|
rules: [babelLoader, es6Transpiler(), {
|
|
162
161
|
test: /\.md$/,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-webpack5",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.16",
|
|
4
4
|
"description": "Storybook framework-agnostic API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -60,21 +60,21 @@
|
|
|
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.4.
|
|
64
|
-
"@storybook/api": "6.4.
|
|
65
|
-
"@storybook/channel-postmessage": "6.4.
|
|
66
|
-
"@storybook/channels": "6.4.
|
|
67
|
-
"@storybook/client-api": "6.4.
|
|
68
|
-
"@storybook/client-logger": "6.4.
|
|
69
|
-
"@storybook/components": "6.4.
|
|
70
|
-
"@storybook/core-common": "6.4.
|
|
71
|
-
"@storybook/core-events": "6.4.
|
|
72
|
-
"@storybook/node-logger": "6.4.
|
|
73
|
-
"@storybook/preview-web": "6.4.
|
|
74
|
-
"@storybook/router": "6.4.
|
|
63
|
+
"@storybook/addons": "6.4.16",
|
|
64
|
+
"@storybook/api": "6.4.16",
|
|
65
|
+
"@storybook/channel-postmessage": "6.4.16",
|
|
66
|
+
"@storybook/channels": "6.4.16",
|
|
67
|
+
"@storybook/client-api": "6.4.16",
|
|
68
|
+
"@storybook/client-logger": "6.4.16",
|
|
69
|
+
"@storybook/components": "6.4.16",
|
|
70
|
+
"@storybook/core-common": "6.4.16",
|
|
71
|
+
"@storybook/core-events": "6.4.16",
|
|
72
|
+
"@storybook/node-logger": "6.4.16",
|
|
73
|
+
"@storybook/preview-web": "6.4.16",
|
|
74
|
+
"@storybook/router": "6.4.16",
|
|
75
75
|
"@storybook/semver": "^7.3.2",
|
|
76
|
-
"@storybook/store": "6.4.
|
|
77
|
-
"@storybook/theming": "6.4.
|
|
76
|
+
"@storybook/store": "6.4.16",
|
|
77
|
+
"@storybook/theming": "6.4.16",
|
|
78
78
|
"@types/node": "^14.0.10",
|
|
79
79
|
"babel-loader": "^8.0.0",
|
|
80
80
|
"babel-plugin-macros": "^3.0.1",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"glob-promise": "^3.4.0",
|
|
88
88
|
"html-webpack-plugin": "^5.0.0",
|
|
89
89
|
"path-browserify": "^1.0.1",
|
|
90
|
-
"
|
|
90
|
+
"process": "^0.11.10",
|
|
91
91
|
"stable": "^0.1.8",
|
|
92
92
|
"style-loader": "^2.0.0",
|
|
93
93
|
"terser-webpack-plugin": "^5.0.3",
|
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@types/case-sensitive-paths-webpack-plugin": "^2.1.4",
|
|
103
|
-
"@types/react-dev-utils": "^9.0.4",
|
|
104
103
|
"@types/terser-webpack-plugin": "^5.0.2",
|
|
105
104
|
"@types/webpack-dev-middleware": "^4.1.0",
|
|
106
105
|
"@types/webpack-hot-middleware": "^2.25.3",
|
|
@@ -118,6 +117,6 @@
|
|
|
118
117
|
"publishConfig": {
|
|
119
118
|
"access": "public"
|
|
120
119
|
},
|
|
121
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "450fb4e44d68bc7b11fe927c390488f336a2431e",
|
|
122
121
|
"sbmodern": "dist/modern/index.js"
|
|
123
122
|
}
|