@hybridly/vite 0.10.0-beta.2 → 0.10.0-beta.20
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/THIRD-PARTY-LICENSES.md +131 -0
- package/dist/_chunks/libs/@clickbar/dot-diver.mjs +1 -0
- package/dist/_chunks/libs/debug.mjs +6 -12
- package/dist/_chunks/libs/deepmerge.mjs +3 -6
- package/dist/_chunks/libs/es-toolkit.mjs +9 -0
- package/dist/_chunks/rolldown-runtime.mjs +8 -14
- package/dist/index.d.mts +12 -12
- package/dist/index.mjs +440 -485
- package/package.json +9 -10
- package/dist/_chunks/libs/is-plain-object.mjs +0 -23
- package/dist/_chunks/libs/lodash.clonedeep.mjs +0 -1412
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# Licenses of Bundled Dependencies
|
|
2
|
+
|
|
3
|
+
The published artifact additionally contains code with the following licenses:
|
|
4
|
+
MIT
|
|
5
|
+
|
|
6
|
+
# Bundled Dependencies
|
|
7
|
+
|
|
8
|
+
## @hybridly/utils
|
|
9
|
+
|
|
10
|
+
License: MIT
|
|
11
|
+
By: Enzo Innocenzi
|
|
12
|
+
Repository: https://github.com/hybridly/hybridly
|
|
13
|
+
|
|
14
|
+
---------------------------------------
|
|
15
|
+
|
|
16
|
+
## debug
|
|
17
|
+
|
|
18
|
+
License: MIT
|
|
19
|
+
By: Josh Junon, TJ Holowaychuk, Nathan Rajlich, Andrew Rhyne
|
|
20
|
+
Repository: https://github.com/debug-js/debug
|
|
21
|
+
|
|
22
|
+
> (The MIT License)
|
|
23
|
+
>
|
|
24
|
+
> Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
|
|
25
|
+
> Copyright (c) 2018-2021 Josh Junon
|
|
26
|
+
>
|
|
27
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
28
|
+
> and associated documentation files (the 'Software'), to deal in the Software without restriction,
|
|
29
|
+
> including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
30
|
+
> and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
31
|
+
> subject to the following conditions:
|
|
32
|
+
>
|
|
33
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
34
|
+
> portions of the Software.
|
|
35
|
+
>
|
|
36
|
+
> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
37
|
+
> LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
38
|
+
> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
39
|
+
> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
40
|
+
> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
41
|
+
|
|
42
|
+
---------------------------------------
|
|
43
|
+
|
|
44
|
+
## deepmerge
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
47
|
+
Repository: https://github.com/TehShrike/deepmerge
|
|
48
|
+
|
|
49
|
+
> The MIT License (MIT)
|
|
50
|
+
>
|
|
51
|
+
> Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
|
|
52
|
+
>
|
|
53
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
54
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
55
|
+
> in the Software without restriction, including without limitation the rights
|
|
56
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
57
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
58
|
+
> furnished to do so, subject to the following conditions:
|
|
59
|
+
>
|
|
60
|
+
> The above copyright notice and this permission notice shall be included in
|
|
61
|
+
> all copies or substantial portions of the Software.
|
|
62
|
+
>
|
|
63
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
64
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
65
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
66
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
67
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
68
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
69
|
+
> THE SOFTWARE.
|
|
70
|
+
|
|
71
|
+
---------------------------------------
|
|
72
|
+
|
|
73
|
+
## es-toolkit
|
|
74
|
+
|
|
75
|
+
License: MIT
|
|
76
|
+
Repository: https://github.com/toss/es-toolkit
|
|
77
|
+
|
|
78
|
+
> MIT License
|
|
79
|
+
>
|
|
80
|
+
> Copyright (c) 2024 Viva Republica, Inc
|
|
81
|
+
>
|
|
82
|
+
> Copyright OpenJS Foundation and other contributors
|
|
83
|
+
>
|
|
84
|
+
> Parts of the test suite and compatibility layer in `es-toolkit/compat` are derived from Lodash (https://github.com/lodash/lodash) by the OpenJS Foundation (https://openjsf.org/) and Underscore.js by Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors (http://underscorejs.org/)
|
|
85
|
+
>
|
|
86
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
87
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
88
|
+
> in the Software without restriction, including without limitation the rights
|
|
89
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
90
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
91
|
+
> furnished to do so, subject to the following conditions:
|
|
92
|
+
>
|
|
93
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
94
|
+
> copies or substantial portions of the Software.
|
|
95
|
+
>
|
|
96
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
97
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
98
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
99
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
100
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
101
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
102
|
+
> SOFTWARE.
|
|
103
|
+
|
|
104
|
+
---------------------------------------
|
|
105
|
+
|
|
106
|
+
## ms
|
|
107
|
+
|
|
108
|
+
License: MIT
|
|
109
|
+
Repository: https://github.com/vercel/ms
|
|
110
|
+
|
|
111
|
+
> The MIT License (MIT)
|
|
112
|
+
>
|
|
113
|
+
> Copyright (c) 2020 Vercel, Inc.
|
|
114
|
+
>
|
|
115
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
116
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
117
|
+
> in the Software without restriction, including without limitation the rights
|
|
118
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
119
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
120
|
+
> furnished to do so, subject to the following conditions:
|
|
121
|
+
>
|
|
122
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
123
|
+
> copies or substantial portions of the Software.
|
|
124
|
+
>
|
|
125
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
126
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
127
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
128
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
129
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
130
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
131
|
+
> SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { n as __require, t as __commonJSMin } from "../rolldown-runtime.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/ms/index.js
|
|
2
|
+
//#region ../../node_modules/.bun/ms@2.1.3/node_modules/ms/index.js
|
|
4
3
|
var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
4
|
/**
|
|
6
5
|
* Helpers.
|
|
@@ -117,9 +116,8 @@ var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
117
116
|
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
118
117
|
}
|
|
119
118
|
}));
|
|
120
|
-
|
|
121
119
|
//#endregion
|
|
122
|
-
//#region ../../node_modules/debug/src/common.js
|
|
120
|
+
//#region ../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/common.js
|
|
123
121
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
124
122
|
/**
|
|
125
123
|
* This is the common logic for both the Node.js and web browser
|
|
@@ -320,9 +318,8 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
320
318
|
}
|
|
321
319
|
module.exports = setup;
|
|
322
320
|
}));
|
|
323
|
-
|
|
324
321
|
//#endregion
|
|
325
|
-
//#region ../../node_modules/debug/src/browser.js
|
|
322
|
+
//#region ../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/browser.js
|
|
326
323
|
var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
327
324
|
/**
|
|
328
325
|
* This is the web browser implementation of `debug()`.
|
|
@@ -517,9 +514,8 @@ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
517
514
|
}
|
|
518
515
|
};
|
|
519
516
|
}));
|
|
520
|
-
|
|
521
517
|
//#endregion
|
|
522
|
-
//#region ../../node_modules/debug/src/node.js
|
|
518
|
+
//#region ../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/node.js
|
|
523
519
|
var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
524
520
|
/**
|
|
525
521
|
* Module dependencies.
|
|
@@ -725,9 +721,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
725
721
|
return util.inspect(v, this.inspectOpts);
|
|
726
722
|
};
|
|
727
723
|
}));
|
|
728
|
-
|
|
729
724
|
//#endregion
|
|
730
|
-
//#region ../../node_modules/debug/src/index.js
|
|
725
|
+
//#region ../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/index.js
|
|
731
726
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
732
727
|
/**
|
|
733
728
|
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
@@ -736,6 +731,5 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
736
731
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
|
|
737
732
|
else module.exports = require_node();
|
|
738
733
|
}));
|
|
739
|
-
|
|
740
734
|
//#endregion
|
|
741
|
-
export { require_src as t };
|
|
735
|
+
export { require_src as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { t as __commonJSMin } from "../rolldown-runtime.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/deepmerge/dist/cjs.js
|
|
2
|
+
//#region ../../node_modules/.bun/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
|
|
4
3
|
var require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
4
|
var isMergeableObject = function isMergeableObject(value) {
|
|
6
5
|
return isNonNullObject(value) && !isSpecial(value);
|
|
@@ -78,9 +77,7 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
78
77
|
return deepmerge(prev, next, options);
|
|
79
78
|
}, {});
|
|
80
79
|
};
|
|
81
|
-
|
|
82
|
-
module.exports = deepmerge_1;
|
|
80
|
+
module.exports = deepmerge;
|
|
83
81
|
}));
|
|
84
|
-
|
|
85
82
|
//#endregion
|
|
86
|
-
export { require_cjs as t };
|
|
83
|
+
export { require_cjs as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../../node_modules/.bun/es-toolkit@1.45.1/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
2
|
+
function isPlainObject(value) {
|
|
3
|
+
if (!value || typeof value !== "object") return false;
|
|
4
|
+
const proto = Object.getPrototypeOf(value);
|
|
5
|
+
if (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;
|
|
6
|
+
return Object.prototype.toString.call(value) === "[object Object]";
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { isPlainObject as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
6
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -9,16 +8,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
9
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
9
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
10
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
22
17
|
}
|
|
23
18
|
return to;
|
|
24
19
|
};
|
|
@@ -27,6 +22,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
22
|
enumerable: true
|
|
28
23
|
}) : target, mod));
|
|
29
24
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
|
-
|
|
31
25
|
//#endregion
|
|
32
|
-
export { __require as n, __toESM as r, __commonJSMin as t };
|
|
26
|
+
export { __require as n, __toESM as r, __commonJSMin as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vite from "vite";
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
3
|
import { Runner } from "vite-plugin-run";
|
|
4
4
|
import { Options as Options$1 } from "@vitejs/plugin-vue";
|
|
5
5
|
import { DynamicConfiguration } from "@hybridly/core";
|
|
6
6
|
|
|
7
|
+
//#region src/integrations/unplugins.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Import map for auto-importing Hybridly utils.
|
|
10
|
+
*/
|
|
11
|
+
declare const hybridlyImports: {
|
|
12
|
+
'hybridly/vue': string[];
|
|
13
|
+
hybridly: string[];
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
7
16
|
//#region src/types.d.ts
|
|
8
17
|
interface ViteOptions {
|
|
9
18
|
/** Disables the Laravel integration. Useful if you prefer to use the official one. */
|
|
@@ -43,17 +52,8 @@ interface TsConfigOptions {
|
|
|
43
52
|
//#region src/layout/index.d.ts
|
|
44
53
|
declare const _default: (options: ViteOptions, config: DynamicConfiguration) => Plugin;
|
|
45
54
|
//#endregion
|
|
46
|
-
//#region src/integrations/unplugins.d.ts
|
|
47
|
-
/**
|
|
48
|
-
* Import map for auto-importing Hybridly utils.
|
|
49
|
-
*/
|
|
50
|
-
declare const hybridlyImports: {
|
|
51
|
-
'hybridly/vue': string[];
|
|
52
|
-
hybridly: string[];
|
|
53
|
-
};
|
|
54
|
-
//#endregion
|
|
55
55
|
//#region src/index.d.ts
|
|
56
|
-
type Options = ViteOptions | ((config: DynamicConfiguration) =>
|
|
57
|
-
declare function plugin(options?: Options): Promise<(false |
|
|
56
|
+
type Options = ViteOptions | ((config: DynamicConfiguration) => ViteOptions | Promise<ViteOptions>);
|
|
57
|
+
declare function plugin(options?: Options): Promise<(false | vite.Plugin<any>)[]>;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { ViteOptions as Options, plugin as default, hybridlyImports, _default as layout };
|