@modern-js/storybook-builder 0.0.0-nightly-20231113170648 → 0.0.0-nightly-20231115170655

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/storybook-builder",
3
- "version": "0.0.0-nightly-20231113170648",
3
+ "version": "0.0.0-nightly-20231115170655",
4
4
  "description": "modern.js support for storybook",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,19 +17,19 @@
17
17
  ],
18
18
  "exports": {
19
19
  ".": {
20
- "jsnext:source": "./src/index.ts",
21
20
  "types": "./dist/types/index.d.ts",
21
+ "jsnext:source": "./src/index.ts",
22
22
  "default": "./dist/cjs/index.js"
23
23
  },
24
24
  "./preset": "./dist/esm/preset.js",
25
25
  "./addons": {
26
- "jsnext:source": "./src/addons/preset/preview.ts",
27
26
  "types": "./dist/types/addons/preset/preview.d.ts",
27
+ "jsnext:source": "./src/addons/preset/preview.ts",
28
28
  "default": "./dist/esm/addons/preset/preview.js"
29
29
  },
30
30
  "./types": {
31
- "jsnext:source": "./src/types.ts",
32
31
  "types": "./dist/types/types.d.ts",
32
+ "jsnext:source": "./src/types.ts",
33
33
  "default": "./dist/cjs/types.js"
34
34
  },
35
35
  "./templates/preview.ejs": "./templates/preview.ejs",
@@ -71,11 +71,11 @@
71
71
  "serve-static": "^1.14.1",
72
72
  "tinypool": "^0.8.0",
73
73
  "webpack-hot-middleware": "^2.25.4",
74
- "@modern-js/builder": "0.0.0-nightly-20231113170648",
75
- "@modern-js/core": "0.0.0-nightly-20231113170648",
76
- "@modern-js/builder-shared": "0.0.0-nightly-20231113170648",
77
- "@modern-js/runtime": "0.0.0-nightly-20231113170648",
78
- "@modern-js/utils": "0.0.0-nightly-20231113170648"
74
+ "@modern-js/builder": "0.0.0-nightly-20231115170655",
75
+ "@modern-js/builder-shared": "0.0.0-nightly-20231115170655",
76
+ "@modern-js/core": "0.0.0-nightly-20231115170655",
77
+ "@modern-js/runtime": "0.0.0-nightly-20231115170655",
78
+ "@modern-js/utils": "0.0.0-nightly-20231115170655"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@storybook/types": "^7.5.1",
@@ -83,10 +83,10 @@
83
83
  "@types/serve-static": "^1.13.10",
84
84
  "@types/webpack-hot-middleware": "^2.25.6",
85
85
  "typescript": "^5.2.2",
86
- "@modern-js/builder-rspack-provider": "0.0.0-nightly-20231113170648",
87
- "@modern-js/builder-webpack-provider": "0.0.0-nightly-20231113170648",
88
- "@modern-js/core": "0.0.0-nightly-20231113170648",
89
- "@scripts/build": "0.0.0-nightly-20231113170648"
86
+ "@modern-js/builder-rspack-provider": "0.0.0-nightly-20231115170655",
87
+ "@modern-js/core": "0.0.0-nightly-20231115170655",
88
+ "@modern-js/builder-webpack-provider": "0.0.0-nightly-20231115170655",
89
+ "@scripts/build": "0.0.0-nightly-20231115170655"
90
90
  },
91
91
  "publishConfig": {
92
92
  "registry": "https://registry.npmjs.org/",
@@ -27,13 +27,13 @@ window.__STORYBOOK_CLIENT_API__ = new ClientApi({ storyStore: preview.storyStore
27
27
 
28
28
  preview.initialize({ importFn, getProjectAnnotations });
29
29
 
30
- if (import.meta.webpackHot) {
31
- import.meta.webpackHot.accept('./{{storiesFilename}}', () => {
30
+ if (module.hot) {
31
+ module.hot.accept('./{{storiesFilename}}', () => {
32
32
  // importFn has changed so we need to patch the new one in
33
33
  preview.onStoriesChanged({ importFn });
34
34
  });
35
35
 
36
- import.meta.webpackHot.accept([
36
+ module.hot.accept([
37
37
  {{#each previewAnnotations}}'{{this}}',
38
38
  {{/each}}
39
39
  ], () => {