@storybook/builder-webpack5 6.5.0-alpha.18 → 6.5.0-alpha.21

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.
@@ -33,12 +33,12 @@ window.__STORYBOOK_CLIENT_API__ = new ClientApi({ storyStore: preview.storyStore
33
33
  preview.initialize({ importFn, getProjectAnnotations });
34
34
 
35
35
  if (module.hot) {
36
- module.hot.accept('./{{storiesFilename}}', () => {
36
+ import.meta.webpackHot.accept('./{{storiesFilename}}', () => {
37
37
  // importFn has changed so we need to patch the new one in
38
38
  preview.onStoriesChanged({ importFn });
39
39
  });
40
40
 
41
- module.hot.accept([{{#each configs}}'{{this}}',{{/each}}], () => {
41
+ import.meta.webpackHot.accept([{{#each configs}}'{{this}}',{{/each}}], () => {
42
42
  // getProjectAnnotations has changed so we need to patch the new one in
43
43
  preview.onGetProjectAnnotationsChanged({ getProjectAnnotations });
44
44
  });
@@ -33,12 +33,12 @@ window.__STORYBOOK_CLIENT_API__ = new ClientApi({ storyStore: preview.storyStore
33
33
  preview.initialize({ importFn, getProjectAnnotations });
34
34
 
35
35
  if (module.hot) {
36
- module.hot.accept('./{{storiesFilename}}', () => {
36
+ import.meta.webpackHot.accept('./{{storiesFilename}}', () => {
37
37
  // importFn has changed so we need to patch the new one in
38
38
  preview.onStoriesChanged({ importFn });
39
39
  });
40
40
 
41
- module.hot.accept([{{#each configs}}'{{this}}',{{/each}}], () => {
41
+ import.meta.webpackHot.accept([{{#each configs}}'{{this}}',{{/each}}], () => {
42
42
  // getProjectAnnotations has changed so we need to patch the new one in
43
43
  preview.onGetProjectAnnotationsChanged({ getProjectAnnotations });
44
44
  });
@@ -33,12 +33,12 @@ window.__STORYBOOK_CLIENT_API__ = new ClientApi({ storyStore: preview.storyStore
33
33
  preview.initialize({ importFn, getProjectAnnotations });
34
34
 
35
35
  if (module.hot) {
36
- module.hot.accept('./{{storiesFilename}}', () => {
36
+ import.meta.webpackHot.accept('./{{storiesFilename}}', () => {
37
37
  // importFn has changed so we need to patch the new one in
38
38
  preview.onStoriesChanged({ importFn });
39
39
  });
40
40
 
41
- module.hot.accept([{{#each configs}}'{{this}}',{{/each}}], () => {
41
+ import.meta.webpackHot.accept([{{#each configs}}'{{this}}',{{/each}}], () => {
42
42
  // getProjectAnnotations has changed so we need to patch the new one in
43
43
  preview.onGetProjectAnnotationsChanged({ getProjectAnnotations });
44
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/builder-webpack5",
3
- "version": "6.5.0-alpha.18",
3
+ "version": "6.5.0-alpha.21",
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.5.0-alpha.18",
64
- "@storybook/api": "6.5.0-alpha.18",
65
- "@storybook/channel-postmessage": "6.5.0-alpha.18",
66
- "@storybook/channels": "6.5.0-alpha.18",
67
- "@storybook/client-api": "6.5.0-alpha.18",
68
- "@storybook/client-logger": "6.5.0-alpha.18",
69
- "@storybook/components": "6.5.0-alpha.18",
70
- "@storybook/core-common": "6.5.0-alpha.18",
71
- "@storybook/core-events": "6.5.0-alpha.18",
72
- "@storybook/node-logger": "6.5.0-alpha.18",
73
- "@storybook/preview-web": "6.5.0-alpha.18",
74
- "@storybook/router": "6.5.0-alpha.18",
63
+ "@storybook/addons": "6.5.0-alpha.21",
64
+ "@storybook/api": "6.5.0-alpha.21",
65
+ "@storybook/channel-postmessage": "6.5.0-alpha.21",
66
+ "@storybook/channels": "6.5.0-alpha.21",
67
+ "@storybook/client-api": "6.5.0-alpha.21",
68
+ "@storybook/client-logger": "6.5.0-alpha.21",
69
+ "@storybook/components": "6.5.0-alpha.21",
70
+ "@storybook/core-common": "6.5.0-alpha.21",
71
+ "@storybook/core-events": "6.5.0-alpha.21",
72
+ "@storybook/node-logger": "6.5.0-alpha.21",
73
+ "@storybook/preview-web": "6.5.0-alpha.21",
74
+ "@storybook/router": "6.5.0-alpha.21",
75
75
  "@storybook/semver": "^7.3.2",
76
- "@storybook/store": "6.5.0-alpha.18",
77
- "@storybook/theming": "6.5.0-alpha.18",
76
+ "@storybook/store": "6.5.0-alpha.21",
77
+ "@storybook/theming": "6.5.0-alpha.21",
78
78
  "@types/node": "^14.0.10 || ^16.0.0",
79
79
  "babel-loader": "^8.0.0",
80
80
  "babel-plugin-named-exports-order": "^0.0.2",
@@ -116,6 +116,6 @@
116
116
  "publishConfig": {
117
117
  "access": "public"
118
118
  },
119
- "gitHead": "3dc5da601fde3d52c3661ee553f641d3b1d7e269",
119
+ "gitHead": "fc1a84084556d61fea8bcaa197f7d85f3a9a107d",
120
120
  "sbmodern": "dist/modern/index.js"
121
121
  }