@storybook/react-webpack5 7.0.0-alpha.2 → 7.0.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.
@@ -21,8 +21,12 @@ const core = async config => {
21
21
  exports.core = core;
22
22
 
23
23
  const webpack = async config => {
24
+ var _config$resolve;
25
+
24
26
  // eslint-disable-next-line no-param-reassign
25
- config.resolve.alias = Object.assign({}, config.resolve.alias, {
27
+ config.resolve = config.resolve || {}; // eslint-disable-next-line no-param-reassign
28
+
29
+ config.resolve.alias = Object.assign({}, (_config$resolve = config.resolve) === null || _config$resolve === void 0 ? void 0 : _config$resolve.alias, {
26
30
  '@storybook/react': _path.default.dirname(require.resolve(_path.default.join('@storybook/react', 'package.json')))
27
31
  });
28
32
  return config;
@@ -7,7 +7,9 @@ export const core = async config => {
7
7
  };
8
8
  export const webpack = async config => {
9
9
  // eslint-disable-next-line no-param-reassign
10
- config.resolve.alias = Object.assign({}, config.resolve.alias, {
10
+ config.resolve = config.resolve || {}; // eslint-disable-next-line no-param-reassign
11
+
12
+ config.resolve.alias = Object.assign({}, config.resolve?.alias, {
11
13
  '@storybook/react': path.dirname(require.resolve(path.join('@storybook/react', 'package.json')))
12
14
  });
13
15
  return config;
@@ -2,11 +2,11 @@ import type { StorybookConfig } from '@storybook/preset-react-webpack';
2
2
  export declare const addons: StorybookConfig['addons'];
3
3
  export declare const core: (config: StorybookConfig['core']) => Promise<{
4
4
  builder: string;
5
- disableWebpackDefaults?: boolean;
6
- channelOptions?: Partial<import("telejson").Options>;
7
- disableProjectJson?: boolean;
8
- disableTelemetry?: boolean;
9
- enableCrashReports?: boolean;
10
- crossOriginIsolated?: boolean;
5
+ disableWebpackDefaults?: boolean | undefined;
6
+ channelOptions?: Partial<import("telejson").Options> | undefined;
7
+ disableProjectJson?: boolean | undefined;
8
+ disableTelemetry?: boolean | undefined;
9
+ enableCrashReports?: boolean | undefined;
10
+ crossOriginIsolated?: boolean | undefined;
11
11
  }>;
12
12
  export declare const webpack: StorybookConfig['webpack'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-webpack5",
3
- "version": "7.0.0-alpha.2",
3
+ "version": "7.0.0-alpha.5",
4
4
  "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -33,13 +33,11 @@
33
33
  "prepare": "node ../../scripts/prepare.js"
34
34
  },
35
35
  "dependencies": {
36
- "@storybook/builder-webpack5": "7.0.0-alpha.2",
37
- "@storybook/core-server": "7.0.0-alpha.2",
38
- "@storybook/preset-react-webpack": "7.0.0-alpha.2",
39
- "@storybook/react": "7.0.0-alpha.2",
36
+ "@storybook/builder-webpack5": "7.0.0-alpha.5",
37
+ "@storybook/preset-react-webpack": "7.0.0-alpha.5",
38
+ "@storybook/react": "7.0.0-alpha.5",
40
39
  "@types/node": "^14.14.20 || ^16.0.0",
41
- "core-js": "^3.8.2",
42
- "regenerator-runtime": "^0.13.7"
40
+ "core-js": "^3.8.2"
43
41
  },
44
42
  "devDependencies": {
45
43
  "jest-specific-snapshot": "^4.0.0"
@@ -63,5 +61,5 @@
63
61
  "publishConfig": {
64
62
  "access": "public"
65
63
  },
66
- "gitHead": "44920e2b6bd51981bac5124743c29fb9f5517e44"
64
+ "gitHead": "3dd46982823b34d9f37be917b6247631081feff7"
67
65
  }
package/standalone.js DELETED
@@ -1,7 +0,0 @@
1
- const build = require('@storybook/core-server/standalone');
2
-
3
- async function buildStandalone(options) {
4
- return build(options);
5
- }
6
-
7
- module.exports = buildStandalone;