@storybook/preset-create-react-app 7.6.0-beta.2 → 7.6.0
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 +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11,4 +11,4 @@ var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropD
|
|
|
11
11
|
`,endIndex)}while(index!==-1);return returnValue+=string.substr(endIndex),returnValue};module22.exports={stringReplaceAll,stringEncaseCRLFWithFirstIndex}}}),require_templates=__commonJS2({"../../node_modules/chalk/source/templates.js"(exports2,module22){"use strict";var TEMPLATE_REGEX=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,STRING_REGEX=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ESCAPE_REGEX=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,ESCAPES=new Map([["n",`
|
|
12
12
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function unescape(c){let u=c[0]==="u",bracket=c[1]==="{";return u&&!bracket&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u&&bracket?String.fromCodePoint(parseInt(c.slice(2,-1),16)):ESCAPES.get(c)||c}function parseArguments(name,arguments_){let results=[],chunks=arguments_.trim().split(/\s*,\s*/g),matches;for(let chunk of chunks){let number=Number(chunk);if(!Number.isNaN(number))results.push(number);else if(matches=chunk.match(STRING_REGEX))results.push(matches[2].replace(ESCAPE_REGEX,(m,escape,character)=>escape?unescape(escape):character));else throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`)}return results}function parseStyle(style){STYLE_REGEX.lastIndex=0;let results=[],matches;for(;(matches=STYLE_REGEX.exec(style))!==null;){let name=matches[1];if(matches[2]){let args=parseArguments(name,matches[2]);results.push([name].concat(args))}else results.push([name])}return results}function buildStyle(chalk2,styles){let enabled={};for(let layer of styles)for(let style of layer.styles)enabled[style[0]]=layer.inverse?null:style.slice(1);let current=chalk2;for(let[styleName,styles2]of Object.entries(enabled))if(Array.isArray(styles2)){if(!(styleName in current))throw new Error(`Unknown Chalk style: ${styleName}`);current=styles2.length>0?current[styleName](...styles2):current[styleName]}return current}module22.exports=(chalk2,temporary)=>{let styles=[],chunks=[],chunk=[];if(temporary.replace(TEMPLATE_REGEX,(m,escapeCharacter,inverse,style,close,character)=>{if(escapeCharacter)chunk.push(unescape(escapeCharacter));else if(style){let string=chunk.join("");chunk=[],chunks.push(styles.length===0?string:buildStyle(chalk2,styles)(string)),styles.push({inverse,styles:parseStyle(style)})}else if(close){if(styles.length===0)throw new Error("Found extraneous } in Chalk template literal");chunks.push(buildStyle(chalk2,styles)(chunk.join(""))),chunk=[],styles.pop()}else chunk.push(character)}),chunks.push(chunk.join("")),styles.length>0){let errMessage=`Chalk template literal is missing ${styles.length} closing bracket${styles.length===1?"":"s"} (\`}\`)`;throw new Error(errMessage)}return chunks.join("")}}}),require_source=__commonJS2({"../../node_modules/chalk/source/index.js"(exports2,module22){"use strict";var ansiStyles=require_ansi_styles(),{stdout:stdoutColor,stderr:stderrColor}=require_supports_color(),{stringReplaceAll,stringEncaseCRLFWithFirstIndex}=require_util(),{isArray}=Array,levelMapping=["ansi","ansi","ansi256","ansi16m"],styles=Object.create(null),applyOptions=(object,options={})=>{if(options.level&&!(Number.isInteger(options.level)&&options.level>=0&&options.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let colorLevel=stdoutColor?stdoutColor.level:0;object.level=options.level===void 0?colorLevel:options.level},ChalkClass=class{constructor(options){return chalkFactory(options)}},chalkFactory=options=>{let chalk3={};return applyOptions(chalk3,options),chalk3.template=(...arguments_)=>chalkTag(chalk3.template,...arguments_),Object.setPrototypeOf(chalk3,Chalk.prototype),Object.setPrototypeOf(chalk3.template,chalk3),chalk3.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},chalk3.template.Instance=ChalkClass,chalk3.template};function Chalk(options){return chalkFactory(options)}for(let[styleName,style]of Object.entries(ansiStyles))styles[styleName]={get(){let builder=createBuilder(this,createStyler(style.open,style.close,this._styler),this._isEmpty);return Object.defineProperty(this,styleName,{value:builder}),builder}};styles.visible={get(){let builder=createBuilder(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:builder}),builder}};var usedModels=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let model of usedModels)styles[model]={get(){let{level}=this;return function(...arguments_){let styler=createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_),ansiStyles.color.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}};for(let model of usedModels){let bgModel="bg"+model[0].toUpperCase()+model.slice(1);styles[bgModel]={get(){let{level}=this;return function(...arguments_){let styler=createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_),ansiStyles.bgColor.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}}}var proto=Object.defineProperties(()=>{},{...styles,level:{enumerable:!0,get(){return this._generator.level},set(level){this._generator.level=level}}}),createStyler=(open,close,parent)=>{let openAll,closeAll;return parent===void 0?(openAll=open,closeAll=close):(openAll=parent.openAll+open,closeAll=close+parent.closeAll),{open,close,openAll,closeAll,parent}},createBuilder=(self2,_styler,_isEmpty)=>{let builder=(...arguments_)=>isArray(arguments_[0])&&isArray(arguments_[0].raw)?applyStyle(builder,chalkTag(builder,...arguments_)):applyStyle(builder,arguments_.length===1?""+arguments_[0]:arguments_.join(" "));return Object.setPrototypeOf(builder,proto),builder._generator=self2,builder._styler=_styler,builder._isEmpty=_isEmpty,builder},applyStyle=(self2,string)=>{if(self2.level<=0||!string)return self2._isEmpty?"":string;let styler=self2._styler;if(styler===void 0)return string;let{openAll,closeAll}=styler;if(string.indexOf("\x1B")!==-1)for(;styler!==void 0;)string=stringReplaceAll(string,styler.close,styler.open),styler=styler.parent;let lfIndex=string.indexOf(`
|
|
13
13
|
`);return lfIndex!==-1&&(string=stringEncaseCRLFWithFirstIndex(string,closeAll,openAll,lfIndex)),openAll+string+closeAll},template,chalkTag=(chalk3,...strings)=>{let[firstString]=strings;if(!isArray(firstString)||!isArray(firstString.raw))return strings.join(" ");let arguments_=strings.slice(1),parts=[firstString.raw[0]];for(let i=1;i<firstString.length;i++)parts.push(String(arguments_[i-1]).replace(/[{}\\]/g,"\\$&"),String(firstString.raw[i]));return template===void 0&&(template=require_templates()),template(chalk3,parts.join(""))};Object.defineProperties(Chalk.prototype,styles);var chalk2=Chalk();chalk2.supportsColor=stdoutColor,chalk2.stderr=Chalk({level:stderrColor?stderrColor.level:0}),chalk2.stderr.supportsColor=stderrColor,module22.exports=chalk2}}),src_exports2={};__export2(src_exports2,{colors:()=>colors,deprecate:()=>deprecate,instance:()=>import_npmlog.default,logger:()=>logger3,once:()=>once});module2.exports=__toCommonJS2(src_exports2);var import_npmlog=__toESM2(require_log()),import_pretty_hrtime=__toESM2(require_pretty_hrtime()),import_chalk=__toESM2(require_source());import_npmlog.default.stream=process.stdout;var colors={pink:import_chalk.default.hex("F1618C"),purple:import_chalk.default.hex("B57EE5"),orange:import_chalk.default.hex("F3AD38"),green:import_chalk.default.hex("A2E05E"),blue:import_chalk.default.hex("6DABF5"),red:import_chalk.default.hex("F16161"),gray:import_chalk.default.gray},logger3={verbose:message=>import_npmlog.default.verbose("",message),info:message=>import_npmlog.default.info("",message),plain:message=>console.log(message),line:(count=1)=>console.log(`${Array(count-1).fill(`
|
|
14
|
-
`)}`),warn:message=>import_npmlog.default.warn("",message),trace:({message,time})=>import_npmlog.default.info("",`${message} (${colors.purple((0,import_pretty_hrtime.default)(time))})`),setLevel:(level="info")=>{import_npmlog.default.level=level},error:message=>{if(import_npmlog.default.levels[import_npmlog.default.level]<import_npmlog.default.levels.error){let msg;message instanceof Error&&message.stack?msg=message.stack.toString():msg=message.toString(),console.log(msg.replace(message.toString(),import_chalk.default.red(message.toString())).replaceAll(process.cwd(),"."))}}},logged=new Set,once=type=>message=>{if(!logged.has(message))return logged.add(message),logger3[type](message)};once.clear=()=>logged.clear();once.verbose=once("verbose");once.info=once("info");once.warn=once("warn");once.error=once("error");var deprecate=once("warn")}});var src_exports={};__export(src_exports,{babelDefault:()=>exportedBabelDefault,core:()=>exportedCore,webpack:()=>exportedWebpack});module.exports=__toCommonJS(src_exports);var import_path4=require("path"),import_semver2=__toESM(require("semver")),import_node_logger2=__toESM(require_dist()),import_pnp_webpack_plugin=__toESM(require("pnp-webpack-plugin")),import_react_docgen_typescript_plugin=__toESM(require("@storybook/react-docgen-typescript-plugin"));var import_react_refresh_webpack_plugin=__toESM(require("@pmmmwh/react-refresh-webpack-plugin")),mergePlugins=(...args)=>args.reduce((plugins,plugin)=>{if(plugins.some(includedPlugin=>includedPlugin.constructor.name===plugin.constructor.name)||plugin.constructor.name==="WebpackManifestPlugin")return plugins;let updatedPlugin=plugin;return plugin.constructor.name==="ReactRefreshPlugin"&&(updatedPlugin=new import_react_refresh_webpack_plugin.default({overlay:{sockIntegration:"whm"}})),[...plugins,updatedPlugin]},[]);var import_fs=require("fs"),import_path=require("path"),getReactScriptsPath=()=>{let cwd=process.cwd(),scriptsBinPath=(0,import_path.join)(cwd,"/node_modules/.bin/react-scripts");if(process.platform==="win32")try{let packagePathMatch=(0,import_fs.readFileSync)(scriptsBinPath,"utf8").match(/"\$basedir[\\/](\S+?)[\\/]bin[\\/]react-scripts\.js"/i);if(packagePathMatch&&packagePathMatch.length>1)return(0,import_path.join)(cwd,"/node_modules/.bin/",packagePathMatch[1])}catch{}else try{let scriptsBinPathStat=(0,import_fs.lstatSync)(scriptsBinPath);if(scriptsBinPathStat.isSymbolicLink()===!0){let resolvedBinPath=(0,import_fs.realpathSync)(scriptsBinPath);return(0,import_path.join)(resolvedBinPath,"..","..")}if(scriptsBinPathStat.isFile()===!0)return(0,import_path.join)(cwd,"/node_modules/react-scripts")}catch{}try{return(0,import_path.dirname)(require.resolve("react-scripts/package.json"))}catch{}return""};var import_path2=require("path"),import_semver=__toESM(require("semver")),isRegExp=value=>value instanceof RegExp,isString=value=>typeof value=="string",testMatch=(rule,string)=>rule.test?Array.isArray(rule.test)?rule.test.some(test=>isRegExp(test)&&test.test(string)):isRegExp(rule.test)&&rule.test.test(string):!1,processCraConfig=(craWebpackConfig,options)=>{let configDir=(0,import_path2.resolve)(options.configDir),storybookVersion=import_semver.default.coerce(options.packageJson.version)||"",isStorybook530=import_semver.default.gte(storybookVersion,"5.3.0");return craWebpackConfig.module.rules.reduce((rules,rule)=>{let{oneOf,include}=rule;if(testMatch(rule,".jsx")){let newRule={...rule,include:[include,configDir].filter(Boolean)};return[...rules,newRule]}return oneOf?[...rules,{oneOf:oneOf.map(oneOfRule=>{var _a;if(oneOfRule.type==="asset/resource"){if(isStorybook530){let excludes=["ejs","md","mdx","cjs",...((_a=options.craOverrides)==null?void 0:_a.fileLoaderExcludes)||[]],excludeRegex=new RegExp(`\\.(${excludes.join("|")})$`);return{...oneOfRule,exclude:[...oneOfRule.exclude,excludeRegex]}}return{}}if(testMatch(oneOfRule,".css"))return{...oneOfRule,include:isStorybook530?void 0:[configDir],exclude:[oneOfRule.exclude,/@storybook/]};let isBabelLoader=isString(oneOfRule.loader)&&/[/\\]babel-loader[/\\]/.test(oneOfRule.loader);if(isBabelLoader&&isRegExp(oneOfRule.test)&&oneOfRule.test.test(".jsx")){let{include:_include,options:ruleOptions}=oneOfRule,{plugins:rulePlugins,presets:rulePresets,overrides:ruleOverrides}=typeof ruleOptions=="object"?ruleOptions:{},{extends:_extends,plugins,presets,overrides}=
|
|
14
|
+
`)}`),warn:message=>import_npmlog.default.warn("",message),trace:({message,time})=>import_npmlog.default.info("",`${message} (${colors.purple((0,import_pretty_hrtime.default)(time))})`),setLevel:(level="info")=>{import_npmlog.default.level=level},error:message=>{if(import_npmlog.default.levels[import_npmlog.default.level]<import_npmlog.default.levels.error){let msg;message instanceof Error&&message.stack?msg=message.stack.toString():msg=message.toString(),console.log(msg.replace(message.toString(),import_chalk.default.red(message.toString())).replaceAll(process.cwd(),"."))}}},logged=new Set,once=type=>message=>{if(!logged.has(message))return logged.add(message),logger3[type](message)};once.clear=()=>logged.clear();once.verbose=once("verbose");once.info=once("info");once.warn=once("warn");once.error=once("error");var deprecate=once("warn")}});var src_exports={};__export(src_exports,{babelDefault:()=>exportedBabelDefault,core:()=>exportedCore,webpack:()=>exportedWebpack});module.exports=__toCommonJS(src_exports);var import_path4=require("path"),import_semver2=__toESM(require("semver")),import_node_logger2=__toESM(require_dist()),import_pnp_webpack_plugin=__toESM(require("pnp-webpack-plugin")),import_react_docgen_typescript_plugin=__toESM(require("@storybook/react-docgen-typescript-plugin"));var import_react_refresh_webpack_plugin=__toESM(require("@pmmmwh/react-refresh-webpack-plugin")),mergePlugins=(...args)=>args.reduce((plugins,plugin)=>{if(plugins.some(includedPlugin=>includedPlugin.constructor.name===plugin.constructor.name)||plugin.constructor.name==="WebpackManifestPlugin")return plugins;let updatedPlugin=plugin;return plugin.constructor.name==="ReactRefreshPlugin"&&(updatedPlugin=new import_react_refresh_webpack_plugin.default({overlay:{sockIntegration:"whm"}})),[...plugins,updatedPlugin]},[]);var import_fs=require("fs"),import_path=require("path"),getReactScriptsPath=()=>{let cwd=process.cwd(),scriptsBinPath=(0,import_path.join)(cwd,"/node_modules/.bin/react-scripts");if(process.platform==="win32")try{let packagePathMatch=(0,import_fs.readFileSync)(scriptsBinPath,"utf8").match(/"\$basedir[\\/](\S+?)[\\/]bin[\\/]react-scripts\.js"/i);if(packagePathMatch&&packagePathMatch.length>1)return(0,import_path.join)(cwd,"/node_modules/.bin/",packagePathMatch[1])}catch{}else try{let scriptsBinPathStat=(0,import_fs.lstatSync)(scriptsBinPath);if(scriptsBinPathStat.isSymbolicLink()===!0){let resolvedBinPath=(0,import_fs.realpathSync)(scriptsBinPath);return(0,import_path.join)(resolvedBinPath,"..","..")}if(scriptsBinPathStat.isFile()===!0)return(0,import_path.join)(cwd,"/node_modules/react-scripts")}catch{}try{return(0,import_path.dirname)(require.resolve("react-scripts/package.json"))}catch{}return""};var import_path2=require("path"),import_semver=__toESM(require("semver")),isRegExp=value=>value instanceof RegExp,isString=value=>typeof value=="string",testMatch=(rule,string)=>rule.test?Array.isArray(rule.test)?rule.test.some(test=>isRegExp(test)&&test.test(string)):isRegExp(rule.test)&&rule.test.test(string):!1,processCraConfig=async(craWebpackConfig,options)=>{let configDir=(0,import_path2.resolve)(options.configDir),storybookVersion=import_semver.default.coerce(options.packageJson.version)||"",isStorybook530=import_semver.default.gte(storybookVersion,"5.3.0"),babelOptions=await options.presets.apply("babel");return craWebpackConfig.module.rules.reduce((rules,rule)=>{let{oneOf,include}=rule;if(testMatch(rule,".jsx")){let newRule={...rule,include:[include,configDir].filter(Boolean)};return[...rules,newRule]}return oneOf?[...rules,{oneOf:oneOf.map(oneOfRule=>{var _a;if(oneOfRule.type==="asset/resource"){if(isStorybook530){let excludes=["ejs","md","mdx","cjs",...((_a=options.craOverrides)==null?void 0:_a.fileLoaderExcludes)||[]],excludeRegex=new RegExp(`\\.(${excludes.join("|")})$`);return{...oneOfRule,exclude:[...oneOfRule.exclude,excludeRegex]}}return{}}if(testMatch(oneOfRule,".css"))return{...oneOfRule,include:isStorybook530?void 0:[configDir],exclude:[oneOfRule.exclude,/@storybook/]};let isBabelLoader=isString(oneOfRule.loader)&&/[/\\]babel-loader[/\\]/.test(oneOfRule.loader);if(isBabelLoader&&isRegExp(oneOfRule.test)&&oneOfRule.test.test(".jsx")){let{include:_include,options:ruleOptions}=oneOfRule,{plugins:rulePlugins,presets:rulePresets,overrides:ruleOverrides}=typeof ruleOptions=="object"?ruleOptions:{},{extends:_extends,plugins,presets,overrides}=babelOptions;return{...oneOfRule,include:[_include,configDir].filter(Boolean),options:{...ruleOptions,extends:_extends,plugins:[...plugins??[],...rulePlugins??[]],presets:[...presets??[],...rulePresets??[]],overrides:[...overrides??[],...ruleOverrides??[]]}}}return isBabelLoader&&isRegExp(oneOfRule.test)&&oneOfRule.test.test(".js")?{...oneOfRule,include:[configDir]}:oneOfRule})}]:[...rules,rule]},[])};var import_node_logger=__toESM(require_dist()),incompatiblePresets=["@storybook/preset-scss","@storybook/preset-typescript"],checkPresets=options=>{let{presetsList}=options;presetsList.forEach(preset=>{let presetName=typeof preset=="string"?preset:preset.name;incompatiblePresets.includes(presetName)&&import_node_logger.logger.warn(`\`${presetName}\` may not be compatible with \`@storybook/preset-create-react-app\``)})};var import_fs2=require("fs"),import_path3=require("path"),JSCONFIG="jsconfig.json",TSCONFIG="tsconfig.json",getModulePath=appDirectory=>{let configName="";(0,import_fs2.existsSync)((0,import_path3.join)(appDirectory,TSCONFIG))?configName=TSCONFIG:(0,import_fs2.existsSync)((0,import_path3.join)(appDirectory,JSCONFIG))&&(configName=JSCONFIG);try{let{baseUrl}=require((0,import_path3.join)(appDirectory,configName)).compilerOptions;return baseUrl?[baseUrl]:[]}catch{return[]}};var CWD=process.cwd(),REACT_SCRIPTS_PATH=getReactScriptsPath(),OPTION_SCRIPTS_PACKAGE="scriptsPackageName";process.env.PUBLIC_URL||(process.env.PUBLIC_URL=".");var resolveLoader={modules:["node_modules",(0,import_path4.join)(REACT_SCRIPTS_PATH,"node_modules")],plugins:[import_pnp_webpack_plugin.default.moduleLoader(module)]},core=existing=>({...existing,disableWebpackDefaults:!0}),babelDefault=()=>({presets:[],plugins:[]}),webpack=async(webpackConfig={},options)=>{var _a,_b;let scriptsPath=REACT_SCRIPTS_PATH;checkPresets(options);let scriptsPackageName=options[OPTION_SCRIPTS_PACKAGE];if(typeof scriptsPackageName=="string")try{scriptsPath=(0,import_path4.dirname)(require.resolve(`${scriptsPackageName}/package.json`,{paths:[options.configDir]}))}catch{import_node_logger2.logger.warn(`A \`${OPTION_SCRIPTS_PACKAGE}\` was provided, but couldn't be resolved.`)}if(!scriptsPath)return import_node_logger2.logger.error("Failed to resolve a `react-scripts` package."),webpackConfig;import_node_logger2.logger.info(`=> Loading Webpack configuration from \`${(0,import_path4.relative)(CWD,scriptsPath)}\``),import_node_logger2.logger.info("=> Removing existing JavaScript and TypeScript rules.");let filteredRules=webpackConfig.module&&webpackConfig.module.rules.filter(({test})=>!(test instanceof RegExp&&(test&&test.test(".js")||test.test(".ts")))),craWebpackConfigPath=(0,import_path4.join)(scriptsPath,"config","webpack.config"),craWebpackConfig=require(craWebpackConfigPath)(webpackConfig.mode);import_node_logger2.logger.info("=> Modifying Create React App rules.");let craRules=await processCraConfig(craWebpackConfig,options),isStorybook6=import_semver2.default.gte(options.packageJson.version||"","6.0.0"),{typescriptOptions={reactDocgen:"react-docgen-typescript",reactDocgenTypescriptOptions:{}}}=options,tsDocgenPlugin=!isStorybook6&&typescriptOptions.reactDocgen==="react-docgen-typescript"?[new import_react_docgen_typescript_plugin.default(typescriptOptions.reactDocgenTypescriptOptions)]:[],isProd=webpackConfig.mode!=="development",coreOptions=await options.presets.apply("core"),builderOptions=(_a=coreOptions==null?void 0:coreOptions.builder)==null?void 0:_a.options,cacheConfig=builderOptions!=null&&builderOptions.fsCache?{cache:{type:"filesystem"}}:{},lazyCompilationConfig=builderOptions!=null&&builderOptions.lazyCompilation&&!isProd?{experiments:{lazyCompilation:{entries:!1}}}:{};return{...webpackConfig,...cacheConfig,...lazyCompilationConfig,module:{...webpackConfig.module,rules:[...filteredRules||[],...craRules]},plugins:mergePlugins(...webpackConfig.plugins||[],...craWebpackConfig.plugins??[],...tsDocgenPlugin),resolve:{...webpackConfig.resolve,extensions:(_b=craWebpackConfig.resolve)==null?void 0:_b.extensions,modules:[...webpackConfig.resolve&&webpackConfig.resolve.modules||[],(0,import_path4.join)(REACT_SCRIPTS_PATH,"node_modules"),...getModulePath(CWD)],plugins:[import_pnp_webpack_plugin.default]},resolveLoader}},exportedCore=core,exportedWebpack=webpack,exportedBabelDefault=babelDefault;0&&(module.exports={babelDefault,core,webpack});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/preset-create-react-app",
|
|
3
|
-
"version": "7.6.0
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "Storybook for Create React App preset",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
|
|
53
53
|
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.0c3f3b7.0",
|
|
54
|
-
"@storybook/types": "7.6.0
|
|
54
|
+
"@storybook/types": "7.6.0",
|
|
55
55
|
"@types/babel__core": "^7.1.7",
|
|
56
56
|
"pnp-webpack-plugin": "^1.7.0",
|
|
57
57
|
"semver": "^7.3.5"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@storybook/node-logger": "7.6.0
|
|
60
|
+
"@storybook/node-logger": "7.6.0",
|
|
61
61
|
"@types/node": "^18.0.0",
|
|
62
62
|
"typescript": "~4.9.3"
|
|
63
63
|
},
|