@storybook/react-webpack5 7.1.0-alpha.2 → 7.1.0-alpha.20

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -0,0 +1 @@
1
+
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@storybook/react-webpack5",
3
- "version": "7.1.0-alpha.2",
3
+ "version": "7.1.0-alpha.20",
4
4
  "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
7
7
  ],
8
- "homepage": "https://github.com/storybookjs/storybook/tree/main/frameworks/react-webpack5",
8
+ "homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/react-webpack5",
9
9
  "bugs": {
10
10
  "url": "https://github.com/storybookjs/storybook/issues"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/storybookjs/storybook.git",
15
- "directory": "frameworks/react-webpack5"
15
+ "directory": "code/frameworks/react-webpack5"
16
16
  },
17
17
  "funding": {
18
18
  "type": "opencollective",
@@ -21,15 +21,14 @@
21
21
  "license": "MIT",
22
22
  "exports": {
23
23
  ".": {
24
+ "types": "./dist/index.d.ts",
24
25
  "node": "./dist/index.js",
25
26
  "require": "./dist/index.js",
26
- "import": "./dist/index.mjs",
27
- "types": "./dist/index.d.ts"
27
+ "import": "./dist/index.mjs"
28
28
  },
29
29
  "./preset": {
30
- "require": "./dist/preset.js",
31
- "import": "./dist/preset.mjs",
32
- "types": "./dist/preset.d.ts"
30
+ "types": "./dist/preset.d.ts",
31
+ "require": "./dist/preset.js"
33
32
  },
34
33
  "./package.json": "./package.json"
35
34
  },
@@ -48,9 +47,9 @@
48
47
  "prep": "../../../scripts/prepare/bundle.ts"
49
48
  },
50
49
  "dependencies": {
51
- "@storybook/builder-webpack5": "7.1.0-alpha.2",
52
- "@storybook/preset-react-webpack": "7.1.0-alpha.2",
53
- "@storybook/react": "7.1.0-alpha.2",
50
+ "@storybook/builder-webpack5": "7.1.0-alpha.20",
51
+ "@storybook/preset-react-webpack": "7.1.0-alpha.20",
52
+ "@storybook/react": "7.1.0-alpha.20",
54
53
  "@types/node": "^16.0.0"
55
54
  },
56
55
  "devDependencies": {
@@ -83,5 +82,5 @@
83
82
  ],
84
83
  "platform": "node"
85
84
  },
86
- "gitHead": "3f0c9a6636b9e69006ffb841234cf785598e0572"
85
+ "gitHead": "4d0c4eda02b8afb329f1794fd62088e576fb1ec9"
87
86
  }
package/dist/preset.mjs DELETED
@@ -1 +0,0 @@
1
- var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+x+'" is not supported')});import{dirname,join}from"path";var wrapForPnP=input=>dirname(__require.resolve(join(input,"package.json"))),addons=[wrapForPnP("@storybook/preset-react-webpack")],defaultFrameworkOptions={legacyRootApi:!0},frameworkOptions=async(_,options)=>{let config=await options.presets.apply("framework");return typeof config=="string"?{name:config,options:defaultFrameworkOptions}:typeof config>"u"?{name:wrapForPnP("@storybook/react-webpack5"),options:defaultFrameworkOptions}:{name:config.name,options:{...defaultFrameworkOptions,...config.options}}},core=async(config,options)=>{let framework=await options.presets.apply("framework");return{...config,builder:{name:wrapForPnP("@storybook/builder-webpack5"),options:typeof framework=="string"?{}:framework.options.builder||{}},renderer:wrapForPnP("@storybook/react")}},webpack=async config=>(config.resolve=config.resolve||{},config.resolve.alias={...config.resolve?.alias,"@storybook/react":wrapForPnP("@storybook/react")},config);export{addons,core,frameworkOptions,webpack};