@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 CHANGED
@@ -88,7 +88,7 @@ var start = async function ({
88
88
  hasErrors: function () {
89
89
  return true;
90
90
  },
91
- hasWarngins: function () {
91
+ hasWarnings: function () {
92
92
  return false;
93
93
  },
94
94
  toJson: function () {
@@ -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
@@ -62,7 +62,7 @@ export var start = async function ({
62
62
  hasErrors: function () {
63
63
  return true;
64
64
  },
65
- hasWarngins: function () {
65
+ hasWarnings: function () {
66
66
  return false;
67
67
  },
68
68
  toJson: function () {
@@ -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$/,
@@ -62,7 +62,7 @@ export var start = async function ({
62
62
  hasErrors: function () {
63
63
  return true;
64
64
  },
65
- hasWarngins: function () {
65
+ hasWarnings: function () {
66
66
  return false;
67
67
  },
68
68
  toJson: function () {
@@ -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.0-rc.8",
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.0-rc.8",
64
- "@storybook/api": "6.3.0-rc.8",
65
- "@storybook/channel-postmessage": "6.3.0-rc.8",
66
- "@storybook/channels": "6.3.0-rc.8",
67
- "@storybook/client-api": "6.3.0-rc.8",
68
- "@storybook/client-logger": "6.3.0-rc.8",
69
- "@storybook/components": "6.3.0-rc.8",
70
- "@storybook/core-common": "6.3.0-rc.8",
71
- "@storybook/core-events": "6.3.0-rc.8",
72
- "@storybook/node-logger": "6.3.0-rc.8",
73
- "@storybook/router": "6.3.0-rc.8",
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.0-rc.8",
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": "^6.0.0",
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": "a9256a360ce67dc2eab408046a4baa4e13430a8b",
121
+ "gitHead": "ebc8c46da77947adead90f3d60a779b6bffe3890",
122
122
  "sbmodern": "dist/modern/index.js"
123
123
  }