@storybook/builder-webpack5 6.4.12 → 6.4.13
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 +1 -3
- package/dist/cjs/preview/virtualModuleEntry.template.js +1 -0
- package/dist/esm/preview/iframe-webpack.config.js +2 -3
- package/dist/esm/preview/virtualModuleEntry.template.js +1 -0
- package/dist/modern/preview/iframe-webpack.config.js +2 -3
- package/dist/modern/preview/virtualModuleEntry.template.js +1 -0
- package/package.json +16 -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"));
|
|
@@ -183,7 +181,7 @@ var _default = async function _default(options) {
|
|
|
183
181
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
184
182
|
})), new _webpack.ProvidePlugin({
|
|
185
183
|
process: 'process/browser.js'
|
|
186
|
-
}), isProd ? null : new
|
|
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) {
|
|
@@ -156,7 +155,7 @@ export default (async function (options) {
|
|
|
156
155
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
157
156
|
})), new ProvidePlugin({
|
|
158
157
|
process: 'process/browser.js'
|
|
159
|
-
}), isProd ? null : new
|
|
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) {
|
|
@@ -156,7 +155,7 @@ export default (async function (options) {
|
|
|
156
155
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
157
156
|
})), new ProvidePlugin({
|
|
158
157
|
process: 'process/browser.js'
|
|
159
|
-
}), isProd ? null : new
|
|
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.13",
|
|
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.13",
|
|
64
|
+
"@storybook/api": "6.4.13",
|
|
65
|
+
"@storybook/channel-postmessage": "6.4.13",
|
|
66
|
+
"@storybook/channels": "6.4.13",
|
|
67
|
+
"@storybook/client-api": "6.4.13",
|
|
68
|
+
"@storybook/client-logger": "6.4.13",
|
|
69
|
+
"@storybook/components": "6.4.13",
|
|
70
|
+
"@storybook/core-common": "6.4.13",
|
|
71
|
+
"@storybook/core-events": "6.4.13",
|
|
72
|
+
"@storybook/node-logger": "6.4.13",
|
|
73
|
+
"@storybook/preview-web": "6.4.13",
|
|
74
|
+
"@storybook/router": "6.4.13",
|
|
75
75
|
"@storybook/semver": "^7.3.2",
|
|
76
|
-
"@storybook/store": "6.4.
|
|
77
|
-
"@storybook/theming": "6.4.
|
|
76
|
+
"@storybook/store": "6.4.13",
|
|
77
|
+
"@storybook/theming": "6.4.13",
|
|
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,6 @@
|
|
|
87
87
|
"glob-promise": "^3.4.0",
|
|
88
88
|
"html-webpack-plugin": "^5.0.0",
|
|
89
89
|
"path-browserify": "^1.0.1",
|
|
90
|
-
"react-dev-utils": "^11.0.4",
|
|
91
90
|
"stable": "^0.1.8",
|
|
92
91
|
"style-loader": "^2.0.0",
|
|
93
92
|
"terser-webpack-plugin": "^5.0.3",
|
|
@@ -100,7 +99,6 @@
|
|
|
100
99
|
},
|
|
101
100
|
"devDependencies": {
|
|
102
101
|
"@types/case-sensitive-paths-webpack-plugin": "^2.1.4",
|
|
103
|
-
"@types/react-dev-utils": "^9.0.4",
|
|
104
102
|
"@types/terser-webpack-plugin": "^5.0.2",
|
|
105
103
|
"@types/webpack-dev-middleware": "^4.1.0",
|
|
106
104
|
"@types/webpack-hot-middleware": "^2.25.3",
|
|
@@ -118,6 +116,6 @@
|
|
|
118
116
|
"publishConfig": {
|
|
119
117
|
"access": "public"
|
|
120
118
|
},
|
|
121
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "d0c1e8a2f33b515a945d1a1a83560ba7045f6a5e",
|
|
122
120
|
"sbmodern": "dist/modern/index.js"
|
|
123
121
|
}
|