@storybook/preset-create-react-app 10.0.0-rc.1 → 10.0.0-rc.3
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/index.js +8 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_p6ledi8keej from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_p6ledi8keej from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_p6ledi8keej from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_p6ledi8keej.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_p6ledi8keej.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_p6ledi8keej.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -684,6 +684,7 @@ if (!process.env.PUBLIC_URL) {
|
|
|
684
684
|
}
|
|
685
685
|
var resolveLoader = {
|
|
686
686
|
modules: ["node_modules", join4(REACT_SCRIPTS_PATH, "node_modules")],
|
|
687
|
+
// TODO: Remove in SB11
|
|
687
688
|
plugins: [PnpWebpackPlugin.moduleLoader(module)]
|
|
688
689
|
};
|
|
689
690
|
var core = /* @__PURE__ */ __name((existing) => ({
|
|
@@ -750,6 +751,7 @@ var webpack = /* @__PURE__ */ __name(async (webpackConfig = {}, options) => {
|
|
|
750
751
|
join4(REACT_SCRIPTS_PATH, "node_modules"),
|
|
751
752
|
...getModulePath(CWD)
|
|
752
753
|
],
|
|
754
|
+
// TODO: Remove in SB11
|
|
753
755
|
plugins: [PnpWebpackPlugin],
|
|
754
756
|
// manual copy from builder-webpack because defaults are disabled in this CRA preset
|
|
755
757
|
conditionNames: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/preset-create-react-app",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.3",
|
|
4
4
|
"description": "Storybook for Create React App preset",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react-scripts": ">=5.0.0",
|
|
51
|
-
"storybook": "^10.0.0-rc.
|
|
51
|
+
"storybook": "^10.0.0-rc.3"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|