@storybook/builder-webpack5 6.5.0-alpha.13 → 6.5.0-alpha.17

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.
@@ -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;
@@ -67,6 +67,7 @@ Object.keys(config).forEach(function (key) {
67
67
  return addParameters(v, false);
68
68
  }
69
69
 
70
+ case '__namedExportsOrder':
70
71
  case 'decorateStory':
71
72
  case 'renderToDOM':
72
73
  {
@@ -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
  };
@@ -67,6 +67,7 @@ Object.keys(config).forEach(function (key) {
67
67
  return addParameters(v, false);
68
68
  }
69
69
 
70
+ case '__namedExportsOrder':
70
71
  case 'decorateStory':
71
72
  case 'renderToDOM':
72
73
  {
@@ -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
  };
@@ -67,6 +67,7 @@ Object.keys(config).forEach(function (key) {
67
67
  return addParameters(v, false);
68
68
  }
69
69
 
70
+ case '__namedExportsOrder':
70
71
  case 'decorateStory':
71
72
  case 'renderToDOM':
72
73
  {
@@ -1,2 +1,3 @@
1
1
  export declare const webpack: (_: unknown, options: any) => Promise<import("webpack").Configuration>;
2
2
  export declare const entries: (_: unknown, options: any) => Promise<string[]>;
3
+ export declare const babel: (config: any, options: any) => Promise<any>;
@@ -1,2 +1,3 @@
1
1
  export declare const webpack: (_: unknown, options: any) => Promise<import("webpack").Configuration>;
2
2
  export declare const entries: (_: unknown, options: any) => Promise<string[]>;
3
+ export declare const babel: (config: any, options: any) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/builder-webpack5",
3
- "version": "6.5.0-alpha.13",
3
+ "version": "6.5.0-alpha.17",
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.13",
64
- "@storybook/api": "6.5.0-alpha.13",
65
- "@storybook/channel-postmessage": "6.5.0-alpha.13",
66
- "@storybook/channels": "6.5.0-alpha.13",
67
- "@storybook/client-api": "6.5.0-alpha.13",
68
- "@storybook/client-logger": "6.5.0-alpha.13",
69
- "@storybook/components": "6.5.0-alpha.13",
70
- "@storybook/core-common": "6.5.0-alpha.13",
71
- "@storybook/core-events": "6.5.0-alpha.13",
72
- "@storybook/node-logger": "6.5.0-alpha.13",
73
- "@storybook/preview-web": "6.5.0-alpha.13",
74
- "@storybook/router": "6.5.0-alpha.13",
63
+ "@storybook/addons": "6.5.0-alpha.17",
64
+ "@storybook/api": "6.5.0-alpha.17",
65
+ "@storybook/channel-postmessage": "6.5.0-alpha.17",
66
+ "@storybook/channels": "6.5.0-alpha.17",
67
+ "@storybook/client-api": "6.5.0-alpha.17",
68
+ "@storybook/client-logger": "6.5.0-alpha.17",
69
+ "@storybook/components": "6.5.0-alpha.17",
70
+ "@storybook/core-common": "6.5.0-alpha.17",
71
+ "@storybook/core-events": "6.5.0-alpha.17",
72
+ "@storybook/node-logger": "6.5.0-alpha.17",
73
+ "@storybook/preview-web": "6.5.0-alpha.17",
74
+ "@storybook/router": "6.5.0-alpha.17",
75
75
  "@storybook/semver": "^7.3.2",
76
- "@storybook/store": "6.5.0-alpha.13",
77
- "@storybook/theming": "6.5.0-alpha.13",
76
+ "@storybook/store": "6.5.0-alpha.17",
77
+ "@storybook/theming": "6.5.0-alpha.17",
78
78
  "@types/node": "^14.0.10 || ^16.0.0",
79
79
  "babel-loader": "^8.0.0",
80
- "babel-plugin-macros": "^3.0.1",
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",
@@ -116,6 +115,6 @@
116
115
  "publishConfig": {
117
116
  "access": "public"
118
117
  },
119
- "gitHead": "f0ed19fc336498c1512b6d17d1c3aeb7fdbd8105",
118
+ "gitHead": "26e445b71ae37aeb97e0207cb5139666e7071c06",
120
119
  "sbmodern": "dist/modern/index.js"
121
120
  }