@storybook/react 6.5.0-alpha.61 → 6.5.0-alpha.64
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/dist/cjs/client/preview/render.js +1 -1
- package/dist/cjs/server/framework-preset-react-dom-hack.js +1 -1
- package/dist/esm/client/preview/render.js +1 -1
- package/dist/esm/server/framework-preset-react-dom-hack.js +1 -1
- package/dist/modern/client/preview/render.js +1 -2
- package/dist/modern/server/framework-preset-react-dom-hack.js +1 -1
- package/package.json +9 -9
|
@@ -24,7 +24,7 @@ async function webpackFinal(config) {
|
|
|
24
24
|
return _objectSpread(_objectSpread({}, config), {}, {
|
|
25
25
|
plugins: [...config.plugins, reactDomPkg.version.startsWith('18') || reactDomPkg.version.startsWith('0.0.0') ? null : new _webpack.IgnorePlugin({
|
|
26
26
|
resourceRegExp: /react-dom\/client$/,
|
|
27
|
-
contextRegExp: /(app\/react|@storybook\/react)/ // TODO this needs to work for both in our MONOREPO and in the user's NODE_MODULES
|
|
27
|
+
contextRegExp: /(app\/react|app\\react|@storybook\/react|@storybook\\react)/ // TODO this needs to work for both in our MONOREPO and in the user's NODE_MODULES
|
|
28
28
|
|
|
29
29
|
})].filter(Boolean)
|
|
30
30
|
});
|
|
@@ -135,7 +135,7 @@ var getReactRoot = /*#__PURE__*/function () {
|
|
|
135
135
|
return import('react-dom/client');
|
|
136
136
|
|
|
137
137
|
case 6:
|
|
138
|
-
reactDomClient = _context2.sent;
|
|
138
|
+
reactDomClient = _context2.sent.default;
|
|
139
139
|
root = reactDomClient.createRoot(el);
|
|
140
140
|
nodes.set(el, root);
|
|
141
141
|
|
|
@@ -14,7 +14,7 @@ export async function webpackFinal(config) {
|
|
|
14
14
|
return _objectSpread(_objectSpread({}, config), {}, {
|
|
15
15
|
plugins: [...config.plugins, reactDomPkg.version.startsWith('18') || reactDomPkg.version.startsWith('0.0.0') ? null : new IgnorePlugin({
|
|
16
16
|
resourceRegExp: /react-dom\/client$/,
|
|
17
|
-
contextRegExp: /(app\/react|@storybook\/react)/ // TODO this needs to work for both in our MONOREPO and in the user's NODE_MODULES
|
|
17
|
+
contextRegExp: /(app\/react|app\\react|@storybook\/react|@storybook\\react)/ // TODO this needs to work for both in our MONOREPO and in the user's NODE_MODULES
|
|
18
18
|
|
|
19
19
|
})].filter(Boolean)
|
|
20
20
|
});
|
|
@@ -57,9 +57,8 @@ const getReactRoot = async el => {
|
|
|
57
57
|
let root = nodes.get(el);
|
|
58
58
|
|
|
59
59
|
if (!root) {
|
|
60
|
-
// Skipping webpack's static analysis of import paths by defining the path value outside the import statement.
|
|
61
60
|
// eslint-disable-next-line import/no-unresolved
|
|
62
|
-
const reactDomClient = await import('react-dom/client');
|
|
61
|
+
const reactDomClient = (await import('react-dom/client')).default;
|
|
63
62
|
root = reactDomClient.createRoot(el);
|
|
64
63
|
nodes.set(el, root);
|
|
65
64
|
}
|
|
@@ -14,7 +14,7 @@ export async function webpackFinal(config) {
|
|
|
14
14
|
return _objectSpread(_objectSpread({}, config), {}, {
|
|
15
15
|
plugins: [...config.plugins, reactDomPkg.version.startsWith('18') || reactDomPkg.version.startsWith('0.0.0') ? null : new IgnorePlugin({
|
|
16
16
|
resourceRegExp: /react-dom\/client$/,
|
|
17
|
-
contextRegExp: /(app\/react|@storybook\/react)/ // TODO this needs to work for both in our MONOREPO and in the user's NODE_MODULES
|
|
17
|
+
contextRegExp: /(app\/react|app\\react|@storybook\/react|@storybook\\react)/ // TODO this needs to work for both in our MONOREPO and in the user's NODE_MODULES
|
|
18
18
|
|
|
19
19
|
})].filter(Boolean)
|
|
20
20
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react",
|
|
3
|
-
"version": "6.5.0-alpha.
|
|
3
|
+
"version": "6.5.0-alpha.64",
|
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
"@babel/preset-flow": "^7.12.1",
|
|
50
50
|
"@babel/preset-react": "^7.12.10",
|
|
51
51
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
52
|
-
"@storybook/addons": "6.5.0-alpha.
|
|
53
|
-
"@storybook/client-logger": "6.5.0-alpha.
|
|
54
|
-
"@storybook/core": "6.5.0-alpha.
|
|
55
|
-
"@storybook/core-common": "6.5.0-alpha.
|
|
52
|
+
"@storybook/addons": "6.5.0-alpha.64",
|
|
53
|
+
"@storybook/client-logger": "6.5.0-alpha.64",
|
|
54
|
+
"@storybook/core": "6.5.0-alpha.64",
|
|
55
|
+
"@storybook/core-common": "6.5.0-alpha.64",
|
|
56
56
|
"@storybook/csf": "0.0.2--canary.7c6c115.0",
|
|
57
|
-
"@storybook/docs-tools": "6.5.0-alpha.
|
|
58
|
-
"@storybook/node-logger": "6.5.0-alpha.
|
|
57
|
+
"@storybook/docs-tools": "6.5.0-alpha.64",
|
|
58
|
+
"@storybook/node-logger": "6.5.0-alpha.64",
|
|
59
59
|
"@storybook/react-docgen-typescript-plugin": "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0",
|
|
60
60
|
"@storybook/semver": "^7.3.2",
|
|
61
|
-
"@storybook/store": "6.5.0-alpha.
|
|
61
|
+
"@storybook/store": "6.5.0-alpha.64",
|
|
62
62
|
"@types/estree": "^0.0.51",
|
|
63
63
|
"@types/node": "^14.14.20 || ^16.0.0",
|
|
64
64
|
"@types/webpack-env": "^1.16.0",
|
|
@@ -119,6 +119,6 @@
|
|
|
119
119
|
"publishConfig": {
|
|
120
120
|
"access": "public"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "7417a230d67b54d65caedcfb584f924b879ac9f5",
|
|
123
123
|
"sbmodern": "dist/modern/client/index.js"
|
|
124
124
|
}
|