@storybook/builder-webpack5 6.3.0-rc.8 → 6.3.2
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/index.js +1 -1
- package/dist/cjs/preview/iframe-webpack.config.js +6 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/preview/iframe-webpack.config.js +7 -5
- package/dist/modern/index.js +1 -1
- package/dist/modern/preview/iframe-webpack.config.js +7 -5
- package/dist/ts3.4/preview/iframe-webpack.config.d.ts +1 -1
- package/dist/ts3.9/preview/iframe-webpack.config.d.ts +1 -1
- package/package.json +15 -15
package/dist/cjs/index.js
CHANGED
|
@@ -62,7 +62,8 @@ var _default = async function _default({
|
|
|
62
62
|
frameworkPath: frameworkPath,
|
|
63
63
|
presets: presets,
|
|
64
64
|
typescriptOptions: typescriptOptions,
|
|
65
|
-
modern: modern
|
|
65
|
+
modern: modern,
|
|
66
|
+
features: features
|
|
66
67
|
}) {
|
|
67
68
|
var envs = await presets.apply('env');
|
|
68
69
|
var logLevel = await presets.apply('logLevel', undefined);
|
|
@@ -151,7 +152,8 @@ var _default = async function _default({
|
|
|
151
152
|
version: packageJson.version,
|
|
152
153
|
globals: {
|
|
153
154
|
LOGLEVEL: logLevel,
|
|
154
|
-
FRAMEWORK_OPTIONS: frameworkOptions
|
|
155
|
+
FRAMEWORK_OPTIONS: frameworkOptions,
|
|
156
|
+
FEATURES: features
|
|
155
157
|
},
|
|
156
158
|
headHtmlSnippet: headHtmlSnippet,
|
|
157
159
|
bodyHtmlSnippet: bodyHtmlSnippet
|
|
@@ -169,9 +171,9 @@ var _default = async function _default({
|
|
|
169
171
|
}), new _webpack.DefinePlugin({
|
|
170
172
|
'process.env': (0, _coreCommon.stringifyEnvs)(envs),
|
|
171
173
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
172
|
-
}), isProd ? null : new _WatchMissingNodeModulesPlugin.default(_coreCommon.nodeModulesPaths), isProd ? null : new _webpack.HotModuleReplacementPlugin(), new _caseSensitivePathsWebpackPlugin.default(), quiet ? null : new _webpack.ProgressPlugin({}), new _dotenvWebpack.default({
|
|
174
|
+
}), isProd ? null : new _WatchMissingNodeModulesPlugin.default(_coreCommon.nodeModulesPaths), isProd ? null : new _webpack.HotModuleReplacementPlugin(), new _caseSensitivePathsWebpackPlugin.default(), quiet ? null : new _webpack.ProgressPlugin({}), (0, _coreCommon.hasDotenv)() ? new _dotenvWebpack.default({
|
|
173
175
|
silent: true
|
|
174
|
-
}), shouldCheckTs ? new _forkTsCheckerWebpackPlugin.default(tsCheckOptions) : null].filter(Boolean),
|
|
176
|
+
}) : null, shouldCheckTs ? new _forkTsCheckerWebpackPlugin.default(tsCheckOptions) : null].filter(Boolean),
|
|
175
177
|
module: {
|
|
176
178
|
rules: [babelLoader, (0, _coreCommon.es6Transpiler)(), {
|
|
177
179
|
test: /\.md$/,
|
package/dist/esm/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import TerserWebpackPlugin from 'terser-webpack-plugin';
|
|
|
17
17
|
import VirtualModulePlugin from 'webpack-virtual-modules';
|
|
18
18
|
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
|
19
19
|
import themingPaths from '@storybook/theming/paths';
|
|
20
|
-
import { toRequireContextString, es6Transpiler, stringifyEnvs, nodeModulesPaths, interpolate } from '@storybook/core-common';
|
|
20
|
+
import { toRequireContextString, es6Transpiler, stringifyEnvs, nodeModulesPaths, interpolate, hasDotenv } from '@storybook/core-common';
|
|
21
21
|
import { createBabelLoader } from './babel-loader-preview';
|
|
22
22
|
import { useBaseTsSupport } from './useBaseTsSupport';
|
|
23
23
|
var storybookPaths = ['addons', 'api', 'channels', 'channel-postmessage', 'components', 'core-events', 'router', 'theming', 'semver', 'client-api', 'client-logger'].reduce(function (acc, sbPackage) {
|
|
@@ -38,7 +38,8 @@ export default (async function ({
|
|
|
38
38
|
frameworkPath: frameworkPath,
|
|
39
39
|
presets: presets,
|
|
40
40
|
typescriptOptions: typescriptOptions,
|
|
41
|
-
modern: modern
|
|
41
|
+
modern: modern,
|
|
42
|
+
features: features
|
|
42
43
|
}) {
|
|
43
44
|
var envs = await presets.apply('env');
|
|
44
45
|
var logLevel = await presets.apply('logLevel', undefined);
|
|
@@ -124,7 +125,8 @@ export default (async function ({
|
|
|
124
125
|
version: packageJson.version,
|
|
125
126
|
globals: {
|
|
126
127
|
LOGLEVEL: logLevel,
|
|
127
|
-
FRAMEWORK_OPTIONS: frameworkOptions
|
|
128
|
+
FRAMEWORK_OPTIONS: frameworkOptions,
|
|
129
|
+
FEATURES: features
|
|
128
130
|
},
|
|
129
131
|
headHtmlSnippet: headHtmlSnippet,
|
|
130
132
|
bodyHtmlSnippet: bodyHtmlSnippet
|
|
@@ -142,9 +144,9 @@ export default (async function ({
|
|
|
142
144
|
}), new DefinePlugin({
|
|
143
145
|
'process.env': stringifyEnvs(envs),
|
|
144
146
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
145
|
-
}), isProd ? null : new WatchMissingNodeModulesPlugin(nodeModulesPaths), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), new Dotenv({
|
|
147
|
+
}), isProd ? null : new WatchMissingNodeModulesPlugin(nodeModulesPaths), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), hasDotenv() ? new Dotenv({
|
|
146
148
|
silent: true
|
|
147
|
-
}), shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
|
|
149
|
+
}) : null, shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
|
|
148
150
|
module: {
|
|
149
151
|
rules: [babelLoader, es6Transpiler(), {
|
|
150
152
|
test: /\.md$/,
|
package/dist/modern/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import TerserWebpackPlugin from 'terser-webpack-plugin';
|
|
|
17
17
|
import VirtualModulePlugin from 'webpack-virtual-modules';
|
|
18
18
|
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
|
19
19
|
import themingPaths from '@storybook/theming/paths';
|
|
20
|
-
import { toRequireContextString, es6Transpiler, stringifyEnvs, nodeModulesPaths, interpolate } from '@storybook/core-common';
|
|
20
|
+
import { toRequireContextString, es6Transpiler, stringifyEnvs, nodeModulesPaths, interpolate, hasDotenv } from '@storybook/core-common';
|
|
21
21
|
import { createBabelLoader } from './babel-loader-preview';
|
|
22
22
|
import { useBaseTsSupport } from './useBaseTsSupport';
|
|
23
23
|
var storybookPaths = ['addons', 'api', 'channels', 'channel-postmessage', 'components', 'core-events', 'router', 'theming', 'semver', 'client-api', 'client-logger'].reduce(function (acc, sbPackage) {
|
|
@@ -38,7 +38,8 @@ export default (async function ({
|
|
|
38
38
|
frameworkPath: frameworkPath,
|
|
39
39
|
presets: presets,
|
|
40
40
|
typescriptOptions: typescriptOptions,
|
|
41
|
-
modern: modern
|
|
41
|
+
modern: modern,
|
|
42
|
+
features: features
|
|
42
43
|
}) {
|
|
43
44
|
var envs = await presets.apply('env');
|
|
44
45
|
var logLevel = await presets.apply('logLevel', undefined);
|
|
@@ -124,7 +125,8 @@ export default (async function ({
|
|
|
124
125
|
version: packageJson.version,
|
|
125
126
|
globals: {
|
|
126
127
|
LOGLEVEL: logLevel,
|
|
127
|
-
FRAMEWORK_OPTIONS: frameworkOptions
|
|
128
|
+
FRAMEWORK_OPTIONS: frameworkOptions,
|
|
129
|
+
FEATURES: features
|
|
128
130
|
},
|
|
129
131
|
headHtmlSnippet: headHtmlSnippet,
|
|
130
132
|
bodyHtmlSnippet: bodyHtmlSnippet
|
|
@@ -142,9 +144,9 @@ export default (async function ({
|
|
|
142
144
|
}), new DefinePlugin({
|
|
143
145
|
'process.env': stringifyEnvs(envs),
|
|
144
146
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
|
145
|
-
}), isProd ? null : new WatchMissingNodeModulesPlugin(nodeModulesPaths), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), new Dotenv({
|
|
147
|
+
}), isProd ? null : new WatchMissingNodeModulesPlugin(nodeModulesPaths), isProd ? null : new HotModuleReplacementPlugin(), new CaseSensitivePathsPlugin(), quiet ? null : new ProgressPlugin({}), hasDotenv() ? new Dotenv({
|
|
146
148
|
silent: true
|
|
147
|
-
}), shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
|
|
149
|
+
}) : null, shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null].filter(Boolean),
|
|
148
150
|
module: {
|
|
149
151
|
rules: [babelLoader, es6Transpiler(), {
|
|
150
152
|
test: /\.md$/,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Configuration } from 'webpack';
|
|
2
2
|
import { Options } from '@storybook/core-common';
|
|
3
|
-
declare const _default: ({ configDir, babelOptions, entries, stories, outputDir, quiet, packageJson, configType, framework, frameworkPath, presets, typescriptOptions, modern, }: Options & Record<string, any>) => Promise<Configuration>;
|
|
3
|
+
declare const _default: ({ configDir, babelOptions, entries, stories, outputDir, quiet, packageJson, configType, framework, frameworkPath, presets, typescriptOptions, modern, features, }: Options & Record<string, any>) => Promise<Configuration>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Configuration } from 'webpack';
|
|
2
2
|
import { Options } from '@storybook/core-common';
|
|
3
|
-
declare const _default: ({ configDir, babelOptions, entries, stories, outputDir, quiet, packageJson, configType, framework, frameworkPath, presets, typescriptOptions, modern, }: Options & Record<string, any>) => Promise<Configuration>;
|
|
3
|
+
declare const _default: ({ configDir, babelOptions, entries, stories, outputDir, quiet, packageJson, configType, framework, frameworkPath, presets, typescriptOptions, modern, features, }: Options & Record<string, any>) => Promise<Configuration>;
|
|
4
4
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-webpack5",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"description": "Storybook framework-agnostic API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -60,19 +60,19 @@
|
|
|
60
60
|
"@babel/preset-env": "^7.12.11",
|
|
61
61
|
"@babel/preset-react": "^7.12.10",
|
|
62
62
|
"@babel/preset-typescript": "^7.12.7",
|
|
63
|
-
"@storybook/addons": "6.3.
|
|
64
|
-
"@storybook/api": "6.3.
|
|
65
|
-
"@storybook/channel-postmessage": "6.3.
|
|
66
|
-
"@storybook/channels": "6.3.
|
|
67
|
-
"@storybook/client-api": "6.3.
|
|
68
|
-
"@storybook/client-logger": "6.3.
|
|
69
|
-
"@storybook/components": "6.3.
|
|
70
|
-
"@storybook/core-common": "6.3.
|
|
71
|
-
"@storybook/core-events": "6.3.
|
|
72
|
-
"@storybook/node-logger": "6.3.
|
|
73
|
-
"@storybook/router": "6.3.
|
|
63
|
+
"@storybook/addons": "6.3.2",
|
|
64
|
+
"@storybook/api": "6.3.2",
|
|
65
|
+
"@storybook/channel-postmessage": "6.3.2",
|
|
66
|
+
"@storybook/channels": "6.3.2",
|
|
67
|
+
"@storybook/client-api": "6.3.2",
|
|
68
|
+
"@storybook/client-logger": "6.3.2",
|
|
69
|
+
"@storybook/components": "6.3.2",
|
|
70
|
+
"@storybook/core-common": "6.3.2",
|
|
71
|
+
"@storybook/core-events": "6.3.2",
|
|
72
|
+
"@storybook/node-logger": "6.3.2",
|
|
73
|
+
"@storybook/router": "6.3.2",
|
|
74
74
|
"@storybook/semver": "^7.3.2",
|
|
75
|
-
"@storybook/theming": "6.3.
|
|
75
|
+
"@storybook/theming": "6.3.2",
|
|
76
76
|
"@types/node": "^14.0.10",
|
|
77
77
|
"babel-loader": "^8.2.2",
|
|
78
78
|
"babel-plugin-macros": "^3.0.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"case-sensitive-paths-webpack-plugin": "^2.3.0",
|
|
81
81
|
"core-js": "^3.8.2",
|
|
82
82
|
"css-loader": "^5.0.1",
|
|
83
|
-
"dotenv-webpack": "^
|
|
83
|
+
"dotenv-webpack": "^7.0.0",
|
|
84
84
|
"fork-ts-checker-webpack-plugin": "^6.0.4",
|
|
85
85
|
"fs-extra": "^9.0.1",
|
|
86
86
|
"glob": "^7.1.6",
|
|
@@ -118,6 +118,6 @@
|
|
|
118
118
|
"publishConfig": {
|
|
119
119
|
"access": "public"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "ebc8c46da77947adead90f3d60a779b6bffe3890",
|
|
122
122
|
"sbmodern": "dist/modern/index.js"
|
|
123
123
|
}
|