@storybook/builder-webpack5 7.1.0-alpha.26 → 7.1.0-alpha.27
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/presets/preview-preset.js +1 -1
- package/package.json +20 -20
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
Somehow you've ended up with a falsy value for the template option.
|
|
6
6
|
|
|
7
7
|
Please file an issue at https://github.com/storybookjs/storybook with a reproduction.
|
|
8
|
-
`);return{name:"preview",mode:isProd?"production":"development",bail:isProd,devtool:"cheap-module-source-map",entry:entries2,output:{path:(0,import_path.resolve)(process.cwd(),outputDir),filename:isProd?"[name].[contenthash:8].iframe.bundle.js":"[name].iframe.bundle.js",publicPath:""},stats:{preset:"none",logging:"error"},watchOptions:{ignored:/node_modules/},externals:import_globals.globals,ignoreWarnings:[{message:/export '\S+' was not found in 'global'/},{message:/export '\S+' was not found in '@storybook\/global'/}],plugins:[Object.keys(virtualModuleMapping).length>0?new import_webpack_virtual_modules.default(virtualModuleMapping):null,new import_html_webpack_plugin.default({filename:"iframe.html",chunksSortMode:"none",alwaysWriteToDisk:!0,inject:!1,template,templateParameters:{version:packageJson.version,globals:{CONFIG_TYPE:configType,LOGLEVEL:logLevel,FRAMEWORK_OPTIONS:frameworkOptions,CHANNEL_OPTIONS:coreOptions.channelOptions,FEATURES:features,PREVIEW_URL:previewUrl,STORIES:stories.map(specifier=>({...specifier,importPathMatcher:specifier.importPathMatcher.source})),DOCS_OPTIONS:docsOptions},headHtmlSnippet,bodyHtmlSnippet},minify:{collapseWhitespace:!0,removeComments:!0,removeRedundantAttributes:!0,removeScriptTypeAttributes:!1,removeStyleLinkTypeAttributes:!0,useShortDoctype:!0}}),new import_webpack.DefinePlugin({...(0,import_core_common2.stringifyProcessEnvs)(envs),NODE_ENV:JSON.stringify(process.env.NODE_ENV)}),new import_webpack.ProvidePlugin({process:require.resolve("process/browser.js")}),isProd?null:new import_webpack.HotModuleReplacementPlugin,new import_case_sensitive_paths_webpack_plugin.default,quiet?null:new import_webpack.ProgressPlugin({modulesCount}),shouldCheckTs?new import_fork_ts_checker_webpack_plugin.default(tsCheckOptions):null].filter(Boolean),module:{rules:[{test:/\.m?js$/,type:"javascript/auto"},{test:/\.m?js$/,resolve:{fullySpecified:!1}},builderOptions.useSWC?createSWCLoader(Object.keys(virtualModuleMapping)):createBabelLoader(babelOptions,typescriptOptions,Object.keys(virtualModuleMapping)),{test:/\.md$/,type:"asset/source"}]},resolve:{extensions:[".mjs",".js",".jsx",".ts",".tsx",".json",".cjs"],modules:["node_modules"].concat(envs.NODE_PATH||[]),mainFields:["browser","module","main"].filter(Boolean),alias:storybookPaths,fallback:{path:require.resolve("path-browserify"),assert:require.resolve("browser-assert"),util:require.resolve("util")},symlinks:!(0,import_core_common2.isPreservingSymlinks)()},optimization:{splitChunks:{chunks:"all"},runtimeChunk:!0,sideEffects:!0,usedExports:isProd,moduleIds:"named",minimizer:
|
|
8
|
+
`);return{name:"preview",mode:isProd?"production":"development",bail:isProd,devtool:"cheap-module-source-map",entry:entries2,output:{path:(0,import_path.resolve)(process.cwd(),outputDir),filename:isProd?"[name].[contenthash:8].iframe.bundle.js":"[name].iframe.bundle.js",publicPath:""},stats:{preset:"none",logging:"error"},watchOptions:{ignored:/node_modules/},externals:import_globals.globals,ignoreWarnings:[{message:/export '\S+' was not found in 'global'/},{message:/export '\S+' was not found in '@storybook\/global'/}],plugins:[Object.keys(virtualModuleMapping).length>0?new import_webpack_virtual_modules.default(virtualModuleMapping):null,new import_html_webpack_plugin.default({filename:"iframe.html",chunksSortMode:"none",alwaysWriteToDisk:!0,inject:!1,template,templateParameters:{version:packageJson.version,globals:{CONFIG_TYPE:configType,LOGLEVEL:logLevel,FRAMEWORK_OPTIONS:frameworkOptions,CHANNEL_OPTIONS:coreOptions.channelOptions,FEATURES:features,PREVIEW_URL:previewUrl,STORIES:stories.map(specifier=>({...specifier,importPathMatcher:specifier.importPathMatcher.source})),DOCS_OPTIONS:docsOptions},headHtmlSnippet,bodyHtmlSnippet},minify:{collapseWhitespace:!0,removeComments:!0,removeRedundantAttributes:!0,removeScriptTypeAttributes:!1,removeStyleLinkTypeAttributes:!0,useShortDoctype:!0}}),new import_webpack.DefinePlugin({...(0,import_core_common2.stringifyProcessEnvs)(envs),NODE_ENV:JSON.stringify(process.env.NODE_ENV)}),new import_webpack.ProvidePlugin({process:require.resolve("process/browser.js")}),isProd?null:new import_webpack.HotModuleReplacementPlugin,new import_case_sensitive_paths_webpack_plugin.default,quiet?null:new import_webpack.ProgressPlugin({modulesCount}),shouldCheckTs?new import_fork_ts_checker_webpack_plugin.default(tsCheckOptions):null].filter(Boolean),module:{rules:[{test:/\.m?js$/,type:"javascript/auto"},{test:/\.m?js$/,resolve:{fullySpecified:!1}},builderOptions.useSWC?createSWCLoader(Object.keys(virtualModuleMapping)):createBabelLoader(babelOptions,typescriptOptions,Object.keys(virtualModuleMapping)),{test:/\.md$/,type:"asset/source"}]},resolve:{extensions:[".mjs",".js",".jsx",".ts",".tsx",".json",".cjs"],modules:["node_modules"].concat(envs.NODE_PATH||[]),mainFields:["browser","module","main"].filter(Boolean),alias:storybookPaths,fallback:{path:require.resolve("path-browserify"),assert:require.resolve("browser-assert"),util:require.resolve("util")},symlinks:!(0,import_core_common2.isPreservingSymlinks)()},optimization:{splitChunks:{chunks:"all"},runtimeChunk:!0,sideEffects:!0,usedExports:isProd,moduleIds:"named",...isProd?{minimize:!0,minimizer:builderOptions.useSWC?[new import_terser_webpack_plugin.default({minify:import_terser_webpack_plugin.default.swcMinify,terserOptions:{sourceMap:!0,mangle:!1,keep_fnames:!0}})]:[new import_terser_webpack_plugin.default({parallel:!0,terserOptions:{sourceMap:!0,mangle:!1,keep_fnames:!0}})]}:{}},performance:{hints:isProd?"warning":!1},...cacheConfig,experiments:{...lazyCompilationConfig}}};var webpack=async(_,options)=>iframe_webpack_config_default(options),entries=async(_,options)=>{let result=[];return options.configType==="DEVELOPMENT"&&(result=result.concat(`${require.resolve("webpack-hot-middleware/client")}?reload=true&quiet=false&noInfo=${options.quiet}`)),result},babel=async(config,options)=>({...config,overrides:[...(config==null?void 0:config.overrides)||[],{test:/\.(story|stories).*$/,plugins:[require.resolve("babel-plugin-named-exports-order")]}]}),previewMainTemplate=()=>require.resolve("@storybook/builder-webpack5/templates/preview.ejs");0&&(module.exports={babel,entries,previewMainTemplate,webpack});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-webpack5",
|
|
3
|
-
"version": "7.1.0-alpha.
|
|
3
|
+
"version": "7.1.0-alpha.27",
|
|
4
4
|
"description": "Storybook framework-agnostic API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -56,25 +56,25 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/core": "^7.22.0",
|
|
59
|
-
"@storybook/addons": "7.1.0-alpha.
|
|
60
|
-
"@storybook/api": "7.1.0-alpha.
|
|
61
|
-
"@storybook/channel-postmessage": "7.1.0-alpha.
|
|
62
|
-
"@storybook/channel-websocket": "7.1.0-alpha.
|
|
63
|
-
"@storybook/channels": "7.1.0-alpha.
|
|
64
|
-
"@storybook/client-api": "7.1.0-alpha.
|
|
65
|
-
"@storybook/client-logger": "7.1.0-alpha.
|
|
66
|
-
"@storybook/components": "7.1.0-alpha.
|
|
67
|
-
"@storybook/core-common": "7.1.0-alpha.
|
|
68
|
-
"@storybook/core-events": "7.1.0-alpha.
|
|
69
|
-
"@storybook/core-webpack": "7.1.0-alpha.
|
|
59
|
+
"@storybook/addons": "7.1.0-alpha.27",
|
|
60
|
+
"@storybook/api": "7.1.0-alpha.27",
|
|
61
|
+
"@storybook/channel-postmessage": "7.1.0-alpha.27",
|
|
62
|
+
"@storybook/channel-websocket": "7.1.0-alpha.27",
|
|
63
|
+
"@storybook/channels": "7.1.0-alpha.27",
|
|
64
|
+
"@storybook/client-api": "7.1.0-alpha.27",
|
|
65
|
+
"@storybook/client-logger": "7.1.0-alpha.27",
|
|
66
|
+
"@storybook/components": "7.1.0-alpha.27",
|
|
67
|
+
"@storybook/core-common": "7.1.0-alpha.27",
|
|
68
|
+
"@storybook/core-events": "7.1.0-alpha.27",
|
|
69
|
+
"@storybook/core-webpack": "7.1.0-alpha.27",
|
|
70
70
|
"@storybook/global": "^5.0.0",
|
|
71
|
-
"@storybook/manager-api": "7.1.0-alpha.
|
|
72
|
-
"@storybook/node-logger": "7.1.0-alpha.
|
|
73
|
-
"@storybook/preview": "7.1.0-alpha.
|
|
74
|
-
"@storybook/preview-api": "7.1.0-alpha.
|
|
75
|
-
"@storybook/router": "7.1.0-alpha.
|
|
76
|
-
"@storybook/store": "7.1.0-alpha.
|
|
77
|
-
"@storybook/theming": "7.1.0-alpha.
|
|
71
|
+
"@storybook/manager-api": "7.1.0-alpha.27",
|
|
72
|
+
"@storybook/node-logger": "7.1.0-alpha.27",
|
|
73
|
+
"@storybook/preview": "7.1.0-alpha.27",
|
|
74
|
+
"@storybook/preview-api": "7.1.0-alpha.27",
|
|
75
|
+
"@storybook/router": "7.1.0-alpha.27",
|
|
76
|
+
"@storybook/store": "7.1.0-alpha.27",
|
|
77
|
+
"@storybook/theming": "7.1.0-alpha.27",
|
|
78
78
|
"@swc/core": "^1.3.49",
|
|
79
79
|
"@types/node": "^16.0.0",
|
|
80
80
|
"@types/semver": "^7.3.4",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
],
|
|
132
132
|
"platform": "node"
|
|
133
133
|
},
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "2625ab17064b29167746908ad7e73947c7616f11"
|
|
135
135
|
}
|