@web-widget/vue2 0.10.0 → 0.10.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/vite.cjs +10 -6
- package/dist/vite.js +10 -6
- package/package.json +3 -3
package/dist/vite.cjs
CHANGED
|
@@ -41,10 +41,7 @@ __export(vite_exports, {
|
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(vite_exports);
|
|
43
43
|
var import_vite = require("@web-widget/vite");
|
|
44
|
-
var
|
|
45
|
-
function toArray(value) {
|
|
46
|
-
return Array.isArray(value) ? value : value ? [value] : [];
|
|
47
|
-
}
|
|
44
|
+
var VUE_INTERNAL_REQUEST = /.*\.vue\?vue\b.*$/;
|
|
48
45
|
function vue2WebWidgetPlugin({
|
|
49
46
|
provide = "@web-widget/vue2",
|
|
50
47
|
export: exportWidget = {},
|
|
@@ -55,13 +52,20 @@ function vue2WebWidgetPlugin({
|
|
|
55
52
|
export: __spreadProps(__spreadValues({
|
|
56
53
|
include: /(?:\.|@)(?:route|widget)\.vue(?:\?.*)?$/
|
|
57
54
|
}, exportWidget), {
|
|
58
|
-
exclude: [...toArray(exportWidget.exclude),
|
|
55
|
+
exclude: [...toArray(exportWidget.exclude), VUE_INTERNAL_REQUEST]
|
|
59
56
|
}),
|
|
60
57
|
import: __spreadProps(__spreadValues({
|
|
61
58
|
include: /(?:\.|@)widget\..*$/,
|
|
62
59
|
includeImporter: /.*\.vue(?:\?.*)?$/
|
|
63
60
|
}, importWidget), {
|
|
64
|
-
exclude: [...toArray(importWidget.exclude),
|
|
61
|
+
exclude: [...toArray(importWidget.exclude), VUE_INTERNAL_REQUEST],
|
|
62
|
+
excludeImporter: [
|
|
63
|
+
...toArray(importWidget.excludeImporter),
|
|
64
|
+
VUE_INTERNAL_REQUEST
|
|
65
|
+
]
|
|
65
66
|
})
|
|
66
67
|
});
|
|
67
68
|
}
|
|
69
|
+
function toArray(value) {
|
|
70
|
+
return Array.isArray(value) ? value : value ? [value] : [];
|
|
71
|
+
}
|
package/dist/vite.js
CHANGED
|
@@ -20,10 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
|
|
21
21
|
// src/vite.ts
|
|
22
22
|
import { webWidgetPlugin } from "@web-widget/vite";
|
|
23
|
-
var
|
|
24
|
-
function toArray(value) {
|
|
25
|
-
return Array.isArray(value) ? value : value ? [value] : [];
|
|
26
|
-
}
|
|
23
|
+
var VUE_INTERNAL_REQUEST = /.*\.vue\?vue\b.*$/;
|
|
27
24
|
function vue2WebWidgetPlugin({
|
|
28
25
|
provide = "@web-widget/vue2",
|
|
29
26
|
export: exportWidget = {},
|
|
@@ -34,16 +31,23 @@ function vue2WebWidgetPlugin({
|
|
|
34
31
|
export: __spreadProps(__spreadValues({
|
|
35
32
|
include: /(?:\.|@)(?:route|widget)\.vue(?:\?.*)?$/
|
|
36
33
|
}, exportWidget), {
|
|
37
|
-
exclude: [...toArray(exportWidget.exclude),
|
|
34
|
+
exclude: [...toArray(exportWidget.exclude), VUE_INTERNAL_REQUEST]
|
|
38
35
|
}),
|
|
39
36
|
import: __spreadProps(__spreadValues({
|
|
40
37
|
include: /(?:\.|@)widget\..*$/,
|
|
41
38
|
includeImporter: /.*\.vue(?:\?.*)?$/
|
|
42
39
|
}, importWidget), {
|
|
43
|
-
exclude: [...toArray(importWidget.exclude),
|
|
40
|
+
exclude: [...toArray(importWidget.exclude), VUE_INTERNAL_REQUEST],
|
|
41
|
+
excludeImporter: [
|
|
42
|
+
...toArray(importWidget.excludeImporter),
|
|
43
|
+
VUE_INTERNAL_REQUEST
|
|
44
|
+
]
|
|
44
45
|
})
|
|
45
46
|
});
|
|
46
47
|
}
|
|
48
|
+
function toArray(value) {
|
|
49
|
+
return Array.isArray(value) ? value : value ? [value] : [];
|
|
50
|
+
}
|
|
47
51
|
export {
|
|
48
52
|
vue2WebWidgetPlugin as default
|
|
49
53
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-widget/vue2",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^20.5.7",
|
|
33
33
|
"@web-widget/schema": "0.4.3",
|
|
34
|
-
"@web-widget/vite": "2.11.
|
|
34
|
+
"@web-widget/vite": "2.11.1",
|
|
35
35
|
"@web-widget/web-widget": "1.8.0",
|
|
36
36
|
"tsup": "^8.0.1",
|
|
37
37
|
"typescript": "^5.3.3",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@web-widget/schema": "0.4.3",
|
|
44
|
-
"@web-widget/vite": "2.11.
|
|
44
|
+
"@web-widget/vite": "2.11.1",
|
|
45
45
|
"@web-widget/web-widget": "1.8.0",
|
|
46
46
|
"vue": "^2.7.16",
|
|
47
47
|
"vue-server-renderer": "^2.7.16"
|