@storybook/builder-webpack5 6.4.9 → 6.4.14

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.
@@ -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 _WatchMissingNodeModulesPlugin.default(_coreCommon.nodeModulesPaths), isProd ? null : new _webpack.HotModuleReplacementPlugin(), new _caseSensitivePathsWebpackPlugin.default(), quiet ? null : new _webpack.ProgressPlugin({}), shouldCheckTs ? new _forkTsCheckerWebpackPlugin.default(tsCheckOptions) : null].filter(Boolean),
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$/,
@@ -64,6 +64,7 @@ Object.keys(config).forEach(function (key) {
64
64
  return addParameters(v, false);
65
65
  }
66
66
 
67
+ case '__namedExportsOrder':
67
68
  case 'decorateStory':
68
69
  case 'renderToDOM':
69
70
  {
@@ -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, nodeModulesPaths, handlebars, interpolate, toImportFn, normalizeStories, readTemplate, loadPreviewOrConfigFile } from '@storybook/core-common';
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 WatchMissingNodeModulesPlugin(nodeModulesPaths), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
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$/,
@@ -64,6 +64,7 @@ Object.keys(config).forEach(function (key) {
64
64
  return addParameters(v, false);
65
65
  }
66
66
 
67
+ case '__namedExportsOrder':
67
68
  case 'decorateStory':
68
69
  case 'renderToDOM':
69
70
  {
@@ -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, nodeModulesPaths, handlebars, interpolate, toImportFn, normalizeStories, readTemplate, loadPreviewOrConfigFile } from '@storybook/core-common';
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 WatchMissingNodeModulesPlugin(nodeModulesPaths), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
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$/,
@@ -64,6 +64,7 @@ Object.keys(config).forEach(function (key) {
64
64
  return addParameters(v, false);
65
65
  }
66
66
 
67
+ case '__namedExportsOrder':
67
68
  case 'decorateStory':
68
69
  case 'renderToDOM':
69
70
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/builder-webpack5",
3
- "version": "6.4.9",
3
+ "version": "6.4.14",
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.9",
64
- "@storybook/api": "6.4.9",
65
- "@storybook/channel-postmessage": "6.4.9",
66
- "@storybook/channels": "6.4.9",
67
- "@storybook/client-api": "6.4.9",
68
- "@storybook/client-logger": "6.4.9",
69
- "@storybook/components": "6.4.9",
70
- "@storybook/core-common": "6.4.9",
71
- "@storybook/core-events": "6.4.9",
72
- "@storybook/node-logger": "6.4.9",
73
- "@storybook/preview-web": "6.4.9",
74
- "@storybook/router": "6.4.9",
63
+ "@storybook/addons": "6.4.14",
64
+ "@storybook/api": "6.4.14",
65
+ "@storybook/channel-postmessage": "6.4.14",
66
+ "@storybook/channels": "6.4.14",
67
+ "@storybook/client-api": "6.4.14",
68
+ "@storybook/client-logger": "6.4.14",
69
+ "@storybook/components": "6.4.14",
70
+ "@storybook/core-common": "6.4.14",
71
+ "@storybook/core-events": "6.4.14",
72
+ "@storybook/node-logger": "6.4.14",
73
+ "@storybook/preview-web": "6.4.14",
74
+ "@storybook/router": "6.4.14",
75
75
  "@storybook/semver": "^7.3.2",
76
- "@storybook/store": "6.4.9",
77
- "@storybook/theming": "6.4.9",
76
+ "@storybook/store": "6.4.14",
77
+ "@storybook/theming": "6.4.14",
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
- "react-dev-utils": "^11.0.4",
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": "7d354c89322080b241454eff2cd3adf9c11306cd",
120
+ "gitHead": "cf71c9f2b86e71f39c0d452174d84f34f86879b0",
122
121
  "sbmodern": "dist/modern/index.js"
123
122
  }