@storybook/preset-vue3-webpack 7.0.0-alpha.1 → 7.0.0-alpha.4
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
|
-
|
10
|
+
const webpackFinal = (config, options) => {
|
23
11
|
var _options$presetsList;
|
24
12
|
|
25
13
|
if (!(0, _docsTools.hasDocsOrControls)(options)) return config;
|
26
|
-
|
27
|
-
(_options$presetsList = options.presetsList) === null || _options$presetsList === void 0 ? void 0 : _options$presetsList.forEach(
|
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
|
-
|
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
|
-
|
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: [
|
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: [
|
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: [
|
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
|
-
|
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.
|
3
|
+
"version": "7.0.0-alpha.4",
|
4
4
|
"description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -33,13 +33,12 @@
|
|
33
33
|
"prepare": "node ../../scripts/prepare.js"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@storybook/core-webpack": "7.0.0-alpha.
|
37
|
-
"@storybook/docs-tools": "7.0.0-alpha.
|
36
|
+
"@storybook/core-webpack": "7.0.0-alpha.4",
|
37
|
+
"@storybook/docs-tools": "7.0.0-alpha.4",
|
38
38
|
"@types/node": "^14.14.20 || ^16.0.0",
|
39
39
|
"core-js": "^3.8.2",
|
40
40
|
"react": "16.14.0",
|
41
41
|
"react-dom": "16.14.0",
|
42
|
-
"regenerator-runtime": "^0.13.7",
|
43
42
|
"ts-loader": "^9.2.8",
|
44
43
|
"vue-docgen-api": "^4.46.0",
|
45
44
|
"vue-docgen-loader": "^1.5.1",
|
@@ -62,5 +61,5 @@
|
|
62
61
|
"publishConfig": {
|
63
62
|
"access": "public"
|
64
63
|
},
|
65
|
-
"gitHead": "
|
64
|
+
"gitHead": "006ed54452dd7c37a8cbe91a84f5312182f7ca00"
|
66
65
|
}
|