@storybook/preset-vue3-webpack 7.0.0-alpha.1 → 7.0.0-alpha.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.
@@ -5,28 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.webpackFinal = void 0;
7
7
 
8
- require("core-js/modules/es.object.to-string.js");
9
-
10
- require("core-js/modules/web.dom-collections.for-each.js");
11
-
12
- require("core-js/modules/es.array.includes.js");
13
-
14
- require("core-js/modules/es.string.includes.js");
15
-
16
- require("core-js/modules/es.function.name.js");
17
-
18
- require("core-js/modules/es.object.assign.js");
19
-
20
8
  var _docsTools = require("@storybook/docs-tools");
21
9
 
22
- var webpackFinal = function webpackFinal(config, options) {
10
+ const webpackFinal = (config, options) => {
23
11
  var _options$presetsList;
24
12
 
25
13
  if (!(0, _docsTools.hasDocsOrControls)(options)) return config;
26
- var vueDocgenOptions = {};
27
- (_options$presetsList = options.presetsList) === null || _options$presetsList === void 0 ? void 0 : _options$presetsList.forEach(function (preset) {
14
+ let vueDocgenOptions = {};
15
+ (_options$presetsList = options.presetsList) === null || _options$presetsList === void 0 ? void 0 : _options$presetsList.forEach(preset => {
28
16
  if (preset.name.includes('addon-docs') && preset.options.vueDocgenOptions) {
29
- var appendableOptions = preset.options.vueDocgenOptions;
17
+ const appendableOptions = preset.options.vueDocgenOptions;
30
18
  vueDocgenOptions = Object.assign({}, vueDocgenOptions, appendableOptions);
31
19
  }
32
20
  });
@@ -1,60 +1,22 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.symbol.js");
4
-
5
- require("core-js/modules/es.symbol.description.js");
6
-
7
- require("core-js/modules/es.object.to-string.js");
8
-
9
- require("core-js/modules/es.symbol.iterator.js");
10
-
11
- require("core-js/modules/es.array.iterator.js");
12
-
13
- require("core-js/modules/es.string.iterator.js");
14
-
15
- require("core-js/modules/web.dom-collections.iterator.js");
16
-
17
- require("core-js/modules/es.array.from.js");
18
-
19
- require("core-js/modules/es.array.slice.js");
20
-
21
- require("core-js/modules/es.function.name.js");
22
-
23
- require("core-js/modules/es.regexp.exec.js");
24
-
25
3
  Object.defineProperty(exports, "__esModule", {
26
4
  value: true
27
5
  });
28
6
  exports.webpack = void 0;
29
7
 
30
- require("core-js/modules/es.object.assign.js");
31
-
32
- require("core-js/modules/es.array.concat.js");
33
-
34
8
  var _vueLoader = require("vue-loader");
35
9
 
36
10
  var _webpack = require("webpack");
37
11
 
38
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
39
-
40
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
41
-
42
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
43
-
44
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
45
-
46
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
47
-
48
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
49
-
50
- var webpack = function webpack(config) {
12
+ const webpack = config => {
51
13
  return Object.assign({}, config, {
52
- plugins: [].concat(_toConsumableArray(config.plugins), [new _vueLoader.VueLoaderPlugin(), new _webpack.DefinePlugin({
14
+ plugins: [...config.plugins, new _vueLoader.VueLoaderPlugin(), new _webpack.DefinePlugin({
53
15
  __VUE_OPTIONS_API__: JSON.stringify(true),
54
16
  __VUE_PROD_DEVTOOLS__: JSON.stringify(true)
55
- })]),
17
+ })],
56
18
  module: Object.assign({}, config.module, {
57
- rules: [].concat(_toConsumableArray(config.module.rules), [{
19
+ rules: [...config.module.rules, {
58
20
  test: /\.vue$/,
59
21
  loader: require.resolve('vue-loader'),
60
22
  options: {}
@@ -77,10 +39,10 @@ var webpack = function webpack(config) {
77
39
  appendTsxSuffixTo: [/\.vue$/]
78
40
  }
79
41
  }]
80
- }])
42
+ }]
81
43
  }),
82
44
  resolve: Object.assign({}, config.resolve, {
83
- extensions: [].concat(_toConsumableArray(config.resolve.extensions), ['.vue']),
45
+ extensions: [...config.resolve.extensions, '.vue'],
84
46
  alias: Object.assign({}, config.resolve.alias, {
85
47
  vue$: require.resolve('vue/dist/vue.esm-bundler.js')
86
48
  })
package/dist/cjs/index.js CHANGED
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.addons = void 0;
7
- var addons = [require.resolve('./framework-preset-vue3'), require.resolve('./framework-preset-vue3-docs')];
7
+ const addons = [require.resolve('./framework-preset-vue3'), require.resolve('./framework-preset-vue3-docs')];
8
8
  exports.addons = addons;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/preset-vue3-webpack",
3
- "version": "7.0.0-alpha.1",
3
+ "version": "7.0.0-alpha.2",
4
4
  "description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -33,8 +33,8 @@
33
33
  "prepare": "node ../../scripts/prepare.js"
34
34
  },
35
35
  "dependencies": {
36
- "@storybook/core-webpack": "7.0.0-alpha.1",
37
- "@storybook/docs-tools": "7.0.0-alpha.1",
36
+ "@storybook/core-webpack": "7.0.0-alpha.2",
37
+ "@storybook/docs-tools": "7.0.0-alpha.2",
38
38
  "@types/node": "^14.14.20 || ^16.0.0",
39
39
  "core-js": "^3.8.2",
40
40
  "react": "16.14.0",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "b90b85210f66da59656c2ef58b0910b156256bea"
65
+ "gitHead": "44920e2b6bd51981bac5124743c29fb9f5517e44"
66
66
  }