@powerlines/plugin-vite 0.14.300 → 0.14.302
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/build-CKSRktJj.d.mts +13 -0
- package/dist/build-CKSRktJj.d.mts.map +1 -0
- package/dist/build-DJTI0ZMx.cjs +0 -0
- package/dist/build-DVley5x8.d.cts +13 -0
- package/dist/build-DVley5x8.d.cts.map +1 -0
- package/dist/build-D_6wweLB.mjs +1 -0
- package/dist/helpers/index.cjs +6 -5
- package/dist/helpers/index.d.cts +5 -2
- package/dist/helpers/index.d.mts +5 -2
- package/dist/helpers/index.mjs +3 -2
- package/dist/helpers/resolve-options.cjs +3 -70
- package/dist/helpers/resolve-options.d.cts +3 -15
- package/dist/helpers/resolve-options.d.mts +3 -16
- package/dist/helpers/resolve-options.mjs +2 -68
- package/dist/helpers/unplugin.cjs +2 -11
- package/dist/helpers/unplugin.d.cts +4 -8
- package/dist/helpers/unplugin.d.mts +4 -8
- package/dist/helpers/unplugin.mjs +2 -11
- package/dist/helpers-DvTULET6.mjs +1 -0
- package/dist/helpers-yB1XkvQI.cjs +0 -0
- package/dist/index-B8OHl-c_.d.mts +1 -0
- package/dist/index-C-svZlpj.d.mts +1 -0
- package/dist/index-CFG0_wK4.d.cts +1 -0
- package/dist/index-CtCMUyZA.d.cts +1 -0
- package/dist/index.cjs +13 -11
- package/dist/index.d.cts +7 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/plugin-CfromG2s.d.cts +22 -0
- package/dist/plugin-CfromG2s.d.cts.map +1 -0
- package/dist/plugin-D5qyQPqC.cjs +0 -0
- package/dist/plugin-DIEwkIcq.d.mts +22 -0
- package/dist/plugin-DIEwkIcq.d.mts.map +1 -0
- package/dist/plugin-HyYPEfea.mjs +1 -0
- package/dist/resolve-options-CGWH6O9W.cjs +113 -0
- package/dist/resolve-options-CZfGIJwj.mjs +69 -0
- package/dist/resolve-options-CZfGIJwj.mjs.map +1 -0
- package/dist/resolve-options-Cjw3kuSJ.d.cts +15 -0
- package/dist/resolve-options-Cjw3kuSJ.d.cts.map +1 -0
- package/dist/resolve-options-DDD8d7th.d.mts +15 -0
- package/dist/resolve-options-DDD8d7th.d.mts.map +1 -0
- package/dist/types/_internal.d.cts +3 -2
- package/dist/types/_internal.d.cts.map +1 -1
- package/dist/types/_internal.d.mts +3 -2
- package/dist/types/_internal.d.mts.map +1 -1
- package/dist/types/build.cjs +1 -0
- package/dist/types/build.d.cts +2 -13
- package/dist/types/build.d.mts +2 -13
- package/dist/types/build.mjs +2 -0
- package/dist/types/index.cjs +3 -0
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.mts +3 -2
- package/dist/types/index.mjs +4 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +3 -23
- package/dist/types/plugin.d.mts +3 -24
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-Cn_AzV39.mjs +1 -0
- package/dist/types-D208vOSb.cjs +0 -0
- package/dist/unplugin-BIIMkEyS.cjs +16 -0
- package/dist/unplugin-CmW69N5s.mjs +11 -0
- package/dist/unplugin-CmW69N5s.mjs.map +1 -0
- package/dist/unplugin-DIdD8ka4.d.mts +8 -0
- package/dist/unplugin-DIdD8ka4.d.mts.map +1 -0
- package/dist/unplugin-hWdrpmFt.d.cts +8 -0
- package/dist/unplugin-hWdrpmFt.d.cts.map +1 -0
- package/package.json +6 -6
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
- package/dist/core/src/lib/entry.cjs +0 -13
- package/dist/core/src/lib/entry.mjs +0 -15
- package/dist/core/src/lib/logger.cjs +0 -41
- package/dist/core/src/lib/logger.mjs +0 -40
- package/dist/core/src/lib/logger.mjs.map +0 -1
- package/dist/core/src/lib/unplugin/helpers.cjs +0 -19
- package/dist/core/src/lib/unplugin/helpers.mjs +0 -19
- package/dist/core/src/lib/unplugin/helpers.mjs.map +0 -1
- package/dist/core/src/lib/unplugin/index.cjs +0 -3
- package/dist/core/src/lib/unplugin/index.mjs +0 -5
- package/dist/core/src/lib/unplugin/module-resolution.cjs +0 -66
- package/dist/core/src/lib/unplugin/module-resolution.mjs +0 -66
- package/dist/core/src/lib/unplugin/module-resolution.mjs.map +0 -1
- package/dist/core/src/lib/unplugin/plugin.cjs +0 -71
- package/dist/core/src/lib/unplugin/plugin.mjs +0 -71
- package/dist/core/src/lib/unplugin/plugin.mjs.map +0 -1
- package/dist/core/src/lib/utilities/source-file.cjs +0 -22
- package/dist/core/src/lib/utilities/source-file.mjs +0 -21
- package/dist/core/src/lib/utilities/source-file.mjs.map +0 -1
- package/dist/core/src/plugin-utils/paths.cjs +0 -2
- package/dist/core/src/plugin-utils/paths.mjs +0 -4
- package/dist/core/src/types/_internal.d.cts +0 -85
- package/dist/core/src/types/_internal.d.cts.map +0 -1
- package/dist/core/src/types/_internal.d.mts +0 -85
- package/dist/core/src/types/_internal.d.mts.map +0 -1
- package/dist/core/src/types/api.d.cts +0 -103
- package/dist/core/src/types/api.d.cts.map +0 -1
- package/dist/core/src/types/api.d.mts +0 -103
- package/dist/core/src/types/api.d.mts.map +0 -1
- package/dist/core/src/types/commands.d.cts +0 -9
- package/dist/core/src/types/commands.d.cts.map +0 -1
- package/dist/core/src/types/commands.d.mts +0 -10
- package/dist/core/src/types/commands.d.mts.map +0 -1
- package/dist/core/src/types/config.d.cts +0 -552
- package/dist/core/src/types/config.d.cts.map +0 -1
- package/dist/core/src/types/config.d.mts +0 -552
- package/dist/core/src/types/config.d.mts.map +0 -1
- package/dist/core/src/types/context.d.cts +0 -511
- package/dist/core/src/types/context.d.cts.map +0 -1
- package/dist/core/src/types/context.d.mts +0 -511
- package/dist/core/src/types/context.d.mts.map +0 -1
- package/dist/core/src/types/fs.d.cts +0 -487
- package/dist/core/src/types/fs.d.cts.map +0 -1
- package/dist/core/src/types/fs.d.mts +0 -487
- package/dist/core/src/types/fs.d.mts.map +0 -1
- package/dist/core/src/types/hooks.d.cts +0 -99
- package/dist/core/src/types/hooks.d.cts.map +0 -1
- package/dist/core/src/types/hooks.d.mts +0 -99
- package/dist/core/src/types/hooks.d.mts.map +0 -1
- package/dist/core/src/types/index.d.mts +0 -9
- package/dist/core/src/types/plugin.d.cts +0 -204
- package/dist/core/src/types/plugin.d.cts.map +0 -1
- package/dist/core/src/types/plugin.d.mts +0 -204
- package/dist/core/src/types/plugin.d.mts.map +0 -1
- package/dist/core/src/types/tsconfig.d.cts +0 -70
- package/dist/core/src/types/tsconfig.d.cts.map +0 -1
- package/dist/core/src/types/tsconfig.d.mts +0 -70
- package/dist/core/src/types/tsconfig.d.mts.map +0 -1
- package/dist/core/src/types/unplugin.cjs +0 -21
- package/dist/core/src/types/unplugin.d.cts +0 -24
- package/dist/core/src/types/unplugin.d.cts.map +0 -1
- package/dist/core/src/types/unplugin.d.mts +0 -25
- package/dist/core/src/types/unplugin.d.mts.map +0 -1
- package/dist/core/src/types/unplugin.mjs +0 -22
- package/dist/core/src/types/unplugin.mjs.map +0 -1
- package/dist/helpers/resolve-options.d.cts.map +0 -1
- package/dist/helpers/resolve-options.d.mts.map +0 -1
- package/dist/helpers/resolve-options.mjs.map +0 -1
- package/dist/helpers/unplugin.d.cts.map +0 -1
- package/dist/helpers/unplugin.d.mts.map +0 -1
- package/dist/helpers/unplugin.mjs.map +0 -1
- package/dist/plugin-esbuild/src/helpers/resolve-options.cjs +0 -74
- package/dist/plugin-esbuild/src/helpers/resolve-options.mjs +0 -73
- package/dist/plugin-esbuild/src/helpers/resolve-options.mjs.map +0 -1
- package/dist/plugin-rolldown/src/helpers/resolve-options.cjs +0 -122
- package/dist/plugin-rolldown/src/helpers/resolve-options.mjs +0 -117
- package/dist/plugin-rolldown/src/helpers/resolve-options.mjs.map +0 -1
- package/dist/plugin-rollup/src/helpers/resolve-options.cjs +0 -123
- package/dist/plugin-rollup/src/helpers/resolve-options.mjs +0 -116
- package/dist/plugin-rollup/src/helpers/resolve-options.mjs.map +0 -1
- package/dist/types/build.d.cts.map +0 -1
- package/dist/types/build.d.mts.map +0 -1
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts.map +0 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
let defu = require("defu");
|
|
29
|
+
defu = __toESM(defu);
|
|
30
|
+
let __powerlines_plugin_esbuild_helpers_resolve_options = require("@powerlines/plugin-esbuild/helpers/resolve-options");
|
|
31
|
+
let __powerlines_plugin_rolldown_helpers_resolve_options = require("@powerlines/plugin-rolldown/helpers/resolve-options");
|
|
32
|
+
let __powerlines_plugin_rollup_helpers_resolve_options = require("@powerlines/plugin-rollup/helpers/resolve-options");
|
|
33
|
+
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
34
|
+
|
|
35
|
+
//#region src/helpers/resolve-options.ts
|
|
36
|
+
const DEFAULT_VITE_CONFIG = {
|
|
37
|
+
resolve: { extensions: [
|
|
38
|
+
".mjs",
|
|
39
|
+
".js",
|
|
40
|
+
".mts",
|
|
41
|
+
".ts",
|
|
42
|
+
".jsx",
|
|
43
|
+
".tsx",
|
|
44
|
+
".json"
|
|
45
|
+
] },
|
|
46
|
+
json: { stringify: true },
|
|
47
|
+
logLevel: "silent",
|
|
48
|
+
clearScreen: true
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Resolves the options for [vite](https://vitejs.dev/).
|
|
52
|
+
*
|
|
53
|
+
* @param context - The build context.
|
|
54
|
+
* @returns The resolved options.
|
|
55
|
+
*/
|
|
56
|
+
function resolveOptions(context) {
|
|
57
|
+
return (0, defu.default)({ resolve: {
|
|
58
|
+
alias: Object.entries(context.alias).reduce((ret, [id, path]) => {
|
|
59
|
+
if (!ret.find((e) => e.find === id)) ret.push({
|
|
60
|
+
find: id,
|
|
61
|
+
replacement: path
|
|
62
|
+
});
|
|
63
|
+
else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
64
|
+
return ret;
|
|
65
|
+
}, []),
|
|
66
|
+
dedupe: context.config.resolve.dedupe,
|
|
67
|
+
mainFields: context.config.resolve.mainFields,
|
|
68
|
+
conditions: context.config.resolve.conditions,
|
|
69
|
+
extensions: context.config.resolve.extensions
|
|
70
|
+
} }, context.config.vite ? (0, defu.default)(context.config.vite, { optimizeDeps: context.config.vite?.optimizeDeps ?? {} }, { optimizeDeps: { extensions: context.config.resolve.extensions } }) : {}, {
|
|
71
|
+
define: context.config.define,
|
|
72
|
+
rootDir: context.fs.existsSync((0, __stryke_path_join_paths.joinPaths)(context.config.root, "src")) ? (0, __stryke_path_join_paths.joinPaths)(context.config.root, "src") : context.config.root,
|
|
73
|
+
platform: context.config.platform,
|
|
74
|
+
mode: context.config.mode === "development" ? "development" : "production",
|
|
75
|
+
cacheDir: (0, __stryke_path_join_paths.joinPaths)(context.cachePath, "vite"),
|
|
76
|
+
build: {
|
|
77
|
+
minify: context.config.mode !== "development",
|
|
78
|
+
metafile: context.config.mode === "development",
|
|
79
|
+
sourcemap: context.config.mode === "development",
|
|
80
|
+
outDir: context.config.output.buildPath,
|
|
81
|
+
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
82
|
+
tsconfigRaw: context.tsconfig.tsconfigJson
|
|
83
|
+
},
|
|
84
|
+
esbuild: (0, __powerlines_plugin_esbuild_helpers_resolve_options.resolveOptions)(context),
|
|
85
|
+
optimizeDeps: {
|
|
86
|
+
rolldownOptions: (0, __powerlines_plugin_rolldown_helpers_resolve_options.resolveOptions)(context),
|
|
87
|
+
rollupOptions: (0, __powerlines_plugin_rollup_helpers_resolve_options.resolveOptions)(context),
|
|
88
|
+
esbuildOptions: (0, __powerlines_plugin_esbuild_helpers_resolve_options.resolveOptions)(context)
|
|
89
|
+
},
|
|
90
|
+
logLevel: context.config.logLevel ?? void 0,
|
|
91
|
+
envDir: context.config.root
|
|
92
|
+
}, DEFAULT_VITE_CONFIG);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
Object.defineProperty(exports, 'DEFAULT_VITE_CONFIG', {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return DEFAULT_VITE_CONFIG;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, '__toESM', {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return __toESM;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, 'resolveOptions', {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return resolveOptions;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import defu from "defu";
|
|
2
|
+
import { resolveOptions } from "@powerlines/plugin-esbuild/helpers/resolve-options";
|
|
3
|
+
import { resolveOptions as resolveOptions$1 } from "@powerlines/plugin-rolldown/helpers/resolve-options";
|
|
4
|
+
import { resolveOptions as resolveOptions$2 } from "@powerlines/plugin-rollup/helpers/resolve-options";
|
|
5
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
6
|
+
|
|
7
|
+
//#region src/helpers/resolve-options.ts
|
|
8
|
+
const DEFAULT_VITE_CONFIG = {
|
|
9
|
+
resolve: { extensions: [
|
|
10
|
+
".mjs",
|
|
11
|
+
".js",
|
|
12
|
+
".mts",
|
|
13
|
+
".ts",
|
|
14
|
+
".jsx",
|
|
15
|
+
".tsx",
|
|
16
|
+
".json"
|
|
17
|
+
] },
|
|
18
|
+
json: { stringify: true },
|
|
19
|
+
logLevel: "silent",
|
|
20
|
+
clearScreen: true
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Resolves the options for [vite](https://vitejs.dev/).
|
|
24
|
+
*
|
|
25
|
+
* @param context - The build context.
|
|
26
|
+
* @returns The resolved options.
|
|
27
|
+
*/
|
|
28
|
+
function resolveOptions$3(context) {
|
|
29
|
+
return defu({ resolve: {
|
|
30
|
+
alias: Object.entries(context.alias).reduce((ret, [id, path]) => {
|
|
31
|
+
if (!ret.find((e) => e.find === id)) ret.push({
|
|
32
|
+
find: id,
|
|
33
|
+
replacement: path
|
|
34
|
+
});
|
|
35
|
+
else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
36
|
+
return ret;
|
|
37
|
+
}, []),
|
|
38
|
+
dedupe: context.config.resolve.dedupe,
|
|
39
|
+
mainFields: context.config.resolve.mainFields,
|
|
40
|
+
conditions: context.config.resolve.conditions,
|
|
41
|
+
extensions: context.config.resolve.extensions
|
|
42
|
+
} }, context.config.vite ? defu(context.config.vite, { optimizeDeps: context.config.vite?.optimizeDeps ?? {} }, { optimizeDeps: { extensions: context.config.resolve.extensions } }) : {}, {
|
|
43
|
+
define: context.config.define,
|
|
44
|
+
rootDir: context.fs.existsSync(joinPaths(context.config.root, "src")) ? joinPaths(context.config.root, "src") : context.config.root,
|
|
45
|
+
platform: context.config.platform,
|
|
46
|
+
mode: context.config.mode === "development" ? "development" : "production",
|
|
47
|
+
cacheDir: joinPaths(context.cachePath, "vite"),
|
|
48
|
+
build: {
|
|
49
|
+
minify: context.config.mode !== "development",
|
|
50
|
+
metafile: context.config.mode === "development",
|
|
51
|
+
sourcemap: context.config.mode === "development",
|
|
52
|
+
outDir: context.config.output.buildPath,
|
|
53
|
+
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
54
|
+
tsconfigRaw: context.tsconfig.tsconfigJson
|
|
55
|
+
},
|
|
56
|
+
esbuild: resolveOptions(context),
|
|
57
|
+
optimizeDeps: {
|
|
58
|
+
rolldownOptions: resolveOptions$1(context),
|
|
59
|
+
rollupOptions: resolveOptions$2(context),
|
|
60
|
+
esbuildOptions: resolveOptions(context)
|
|
61
|
+
},
|
|
62
|
+
logLevel: context.config.logLevel ?? void 0,
|
|
63
|
+
envDir: context.config.root
|
|
64
|
+
}, DEFAULT_VITE_CONFIG);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
export { resolveOptions$3 as n, DEFAULT_VITE_CONFIG as t };
|
|
69
|
+
//# sourceMappingURL=resolve-options-CZfGIJwj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-CZfGIJwj.mjs","names":["DEFAULT_VITE_CONFIG: Partial<ViteOptions>","resolveOptions","resolveEsbuildOptions","resolveRolldownOptions","resolveRollupOptions"],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context } from \"@powerlines/core/types\";\nimport { resolveOptions as resolveEsbuildOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { resolveOptions as resolveRolldownOptions } from \"@powerlines/plugin-rolldown/helpers/resolve-options\";\nimport { resolveOptions as resolveRollupOptions } from \"@powerlines/plugin-rollup/helpers/resolve-options\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport { ESBuildOptions } from \"vite\";\nimport { VitePluginResolvedConfig } from \"../types\";\nimport { ViteOptions } from \"../types/build\";\n\nexport const DEFAULT_VITE_CONFIG: Partial<ViteOptions> = {\n resolve: {\n extensions: [\".mjs\", \".js\", \".mts\", \".ts\", \".jsx\", \".tsx\", \".json\"]\n },\n json: {\n stringify: true\n },\n logLevel: \"silent\",\n clearScreen: true\n};\n\n/**\n * Resolves the options for [vite](https://vitejs.dev/).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(context: Context): ViteOptions {\n return defu(\n {\n resolve: {\n alias: Object.entries(context.alias).reduce(\n (ret, [id, path]) => {\n if (!ret.find(e => e.find === id)) {\n ret.push({\n find: id,\n replacement: path\n });\n } else {\n context.warn(\n `Duplicate alias entry for '${id}' detected. The first entry will be used.`\n );\n }\n\n return ret;\n },\n [] as { find: string; replacement: string }[]\n ),\n dedupe: context.config.resolve.dedupe,\n mainFields: context.config.resolve.mainFields,\n conditions: context.config.resolve.conditions,\n extensions: context.config.resolve.extensions\n }\n },\n (context.config as VitePluginResolvedConfig).vite\n ? defu(\n (context.config as VitePluginResolvedConfig).vite,\n {\n optimizeDeps:\n (context.config as VitePluginResolvedConfig).vite?.optimizeDeps ??\n {}\n },\n {\n optimizeDeps: {\n extensions: context.config.resolve.extensions\n }\n }\n )\n : {},\n {\n define: context.config.define,\n rootDir: context.fs.existsSync(joinPaths(context.config.root, \"src\"))\n ? joinPaths(context.config.root, \"src\")\n : context.config.root,\n platform: context.config.platform,\n mode:\n context.config.mode === \"development\" ? \"development\" : \"production\",\n cacheDir: joinPaths(context.cachePath, \"vite\"),\n build: {\n minify: context.config.mode !== \"development\",\n metafile: context.config.mode === \"development\",\n sourcemap: context.config.mode === \"development\",\n outDir: context.config.output.buildPath,\n tsconfig: context.tsconfig.tsconfigFilePath,\n tsconfigRaw: context.tsconfig.tsconfigJson\n },\n esbuild: resolveEsbuildOptions(context) as ESBuildOptions,\n optimizeDeps: {\n rolldownOptions: resolveRolldownOptions(context),\n rollupOptions: resolveRollupOptions(context),\n esbuildOptions: resolveEsbuildOptions(context)\n },\n logLevel: context.config.logLevel ?? undefined,\n envDir: context.config.root\n } as ViteOptions,\n DEFAULT_VITE_CONFIG\n ) as ViteOptions;\n}\n"],"mappings":";;;;;;;AA4BA,MAAaA,sBAA4C;CACvD,SAAS,EACP,YAAY;EAAC;EAAQ;EAAO;EAAQ;EAAO;EAAQ;EAAQ;EAAQ,EACpE;CACD,MAAM,EACJ,WAAW,MACZ;CACD,UAAU;CACV,aAAa;CACd;;;;;;;AAQD,SAAgBC,iBAAe,SAA+B;AAC5D,QAAO,KACL,EACE,SAAS;EACP,OAAO,OAAO,QAAQ,QAAQ,MAAM,CAAC,QAClC,KAAK,CAAC,IAAI,UAAU;AACnB,OAAI,CAAC,IAAI,MAAK,MAAK,EAAE,SAAS,GAAG,CAC/B,KAAI,KAAK;IACP,MAAM;IACN,aAAa;IACd,CAAC;OAEF,SAAQ,KACN,8BAA8B,GAAG,2CAClC;AAGH,UAAO;KAET,EAAE,CACH;EACD,QAAQ,QAAQ,OAAO,QAAQ;EAC/B,YAAY,QAAQ,OAAO,QAAQ;EACnC,YAAY,QAAQ,OAAO,QAAQ;EACnC,YAAY,QAAQ,OAAO,QAAQ;EACpC,EACF,EACA,QAAQ,OAAoC,OACzC,KACG,QAAQ,OAAoC,MAC7C,EACE,cACG,QAAQ,OAAoC,MAAM,gBACnD,EAAE,EACL,EACD,EACE,cAAc,EACZ,YAAY,QAAQ,OAAO,QAAQ,YACpC,EACF,CACF,GACD,EAAE,EACN;EACE,QAAQ,QAAQ,OAAO;EACvB,SAAS,QAAQ,GAAG,WAAW,UAAU,QAAQ,OAAO,MAAM,MAAM,CAAC,GACjE,UAAU,QAAQ,OAAO,MAAM,MAAM,GACrC,QAAQ,OAAO;EACnB,UAAU,QAAQ,OAAO;EACzB,MACE,QAAQ,OAAO,SAAS,gBAAgB,gBAAgB;EAC1D,UAAU,UAAU,QAAQ,WAAW,OAAO;EAC9C,OAAO;GACL,QAAQ,QAAQ,OAAO,SAAS;GAChC,UAAU,QAAQ,OAAO,SAAS;GAClC,WAAW,QAAQ,OAAO,SAAS;GACnC,QAAQ,QAAQ,OAAO,OAAO;GAC9B,UAAU,QAAQ,SAAS;GAC3B,aAAa,QAAQ,SAAS;GAC/B;EACD,SAASC,eAAsB,QAAQ;EACvC,cAAc;GACZ,iBAAiBC,iBAAuB,QAAQ;GAChD,eAAeC,iBAAqB,QAAQ;GAC5C,gBAAgBF,eAAsB,QAAQ;GAC/C;EACD,UAAU,QAAQ,OAAO,YAAY;EACrC,QAAQ,QAAQ,OAAO;EACxB,EACD,oBACD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as ViteOptions } from "./build-DVley5x8.cjs";
|
|
2
|
+
import { Context } from "@powerlines/core/types";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/resolve-options.d.ts
|
|
5
|
+
declare const DEFAULT_VITE_CONFIG: Partial<ViteOptions>;
|
|
6
|
+
/**
|
|
7
|
+
* Resolves the options for [vite](https://vitejs.dev/).
|
|
8
|
+
*
|
|
9
|
+
* @param context - The build context.
|
|
10
|
+
* @returns The resolved options.
|
|
11
|
+
*/
|
|
12
|
+
declare function resolveOptions(context: Context): ViteOptions;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { resolveOptions as n, DEFAULT_VITE_CONFIG as t };
|
|
15
|
+
//# sourceMappingURL=resolve-options-Cjw3kuSJ.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-Cjw3kuSJ.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,qBAAqB,QAAQ;;AAA1C;AAiBA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as ViteOptions } from "./build-CKSRktJj.mjs";
|
|
2
|
+
import { Context } from "@powerlines/core/types";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/resolve-options.d.ts
|
|
5
|
+
declare const DEFAULT_VITE_CONFIG: Partial<ViteOptions>;
|
|
6
|
+
/**
|
|
7
|
+
* Resolves the options for [vite](https://vitejs.dev/).
|
|
8
|
+
*
|
|
9
|
+
* @param context - The build context.
|
|
10
|
+
* @returns The resolved options.
|
|
11
|
+
*/
|
|
12
|
+
declare function resolveOptions(context: Context): ViteOptions;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { resolveOptions as n, DEFAULT_VITE_CONFIG as t };
|
|
15
|
+
//# sourceMappingURL=resolve-options-DDD8d7th.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-DDD8d7th.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,qBAAqB,QAAQ;;AAA1C;AAiBA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../build-DVley5x8.cjs";
|
|
2
|
+
import { r as VitePluginResolvedConfig } from "../plugin-CfromG2s.cjs";
|
|
3
|
+
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
4
|
|
|
4
5
|
//#region src/types/_internal.d.ts
|
|
5
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AA0BA;;AACqD,KADzC,wBACyC,CAAA,wBAA3B,wBAA2B,GAAA,wBAAA,CAAA,GACjD,oBADiD,CAC5B,eAD4B,CAAA;AAC5B,2CAAA,GAAA,EAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../build-CKSRktJj.mjs";
|
|
2
|
+
import { r as VitePluginResolvedConfig } from "../plugin-DIEwkIcq.mjs";
|
|
3
|
+
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
4
|
|
|
4
5
|
//#region src/types/_internal.d.ts
|
|
5
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AA0BA;;AACqD,KADzC,wBACyC,CAAA,wBAA3B,wBAA2B,GAAA,wBAAA,CAAA,GACjD,oBADiD,CAC5B,eAD4B,CAAA;AAC5B,2CAAA,GAAA,EAAA"}
|
package/dist/types/build.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../build-DJTI0ZMx.cjs');
|
package/dist/types/build.d.cts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/types/build.d.ts
|
|
4
|
-
type ViteOptions = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external"> & {
|
|
5
|
-
/**
|
|
6
|
-
* Optimize deps config
|
|
7
|
-
*/
|
|
8
|
-
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
9
|
-
};
|
|
10
|
-
declare type __ΩViteOptions = any[];
|
|
11
|
-
//#endregion
|
|
12
|
-
export { ViteOptions, __ΩViteOptions };
|
|
13
|
-
//# sourceMappingURL=build.d.cts.map
|
|
1
|
+
import { n as __ΩViteOptions, t as ViteOptions } from "../build-DVley5x8.cjs";
|
|
2
|
+
export { ViteOptions, __ΩViteOptions };
|
package/dist/types/build.d.mts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/types/build.d.ts
|
|
4
|
-
type ViteOptions = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external"> & {
|
|
5
|
-
/**
|
|
6
|
-
* Optimize deps config
|
|
7
|
-
*/
|
|
8
|
-
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
9
|
-
};
|
|
10
|
-
declare type __ΩViteOptions = any[];
|
|
11
|
-
//#endregion
|
|
12
|
-
export { ViteOptions, __ΩViteOptions };
|
|
13
|
-
//# sourceMappingURL=build.d.mts.map
|
|
1
|
+
import { n as __ΩViteOptions, t as ViteOptions } from "../build-CKSRktJj.mjs";
|
|
2
|
+
export { ViteOptions, __ΩViteOptions };
|
package/dist/types/build.mjs
CHANGED
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VitePluginContext,
|
|
1
|
+
import { n as __ΩViteOptions, t as ViteOptions } from "../build-DVley5x8.cjs";
|
|
2
|
+
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-CfromG2s.cjs";
|
|
3
|
+
import "../index-CFG0_wK4.cjs";
|
|
3
4
|
export { ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VitePluginContext,
|
|
1
|
+
import { n as __ΩViteOptions, t as ViteOptions } from "../build-CKSRktJj.mjs";
|
|
2
|
+
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-DIEwkIcq.mjs";
|
|
3
|
+
import "../index-B8OHl-c_.mjs";
|
|
3
4
|
export { ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../plugin-D5qyQPqC.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
type VitePluginOptions = Partial<ViteOptions>;
|
|
7
|
-
interface VitePluginUserConfig extends UserConfig {
|
|
8
|
-
vite?: VitePluginOptions;
|
|
9
|
-
}
|
|
10
|
-
interface VitePluginResolvedConfig extends ResolvedConfig {
|
|
11
|
-
vite: ViteOptions;
|
|
12
|
-
}
|
|
13
|
-
type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
14
|
-
dev: boolean;
|
|
15
|
-
configEnv: ConfigEnv;
|
|
16
|
-
};
|
|
17
|
-
declare type __ΩVitePluginOptions = any[];
|
|
18
|
-
declare type __ΩVitePluginUserConfig = any[];
|
|
19
|
-
declare type __ΩVitePluginResolvedConfig = any[];
|
|
20
|
-
declare type __ΩVitePluginContext = any[];
|
|
21
|
-
//#endregion
|
|
22
|
-
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
|
23
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
1
|
+
import "../build-DVley5x8.cjs";
|
|
2
|
+
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-CfromG2s.cjs";
|
|
3
|
+
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { ViteOptions } from "./build.mjs";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type VitePluginOptions = Partial<ViteOptions>;
|
|
8
|
-
interface VitePluginUserConfig extends UserConfig {
|
|
9
|
-
vite?: VitePluginOptions;
|
|
10
|
-
}
|
|
11
|
-
interface VitePluginResolvedConfig extends ResolvedConfig {
|
|
12
|
-
vite: ViteOptions;
|
|
13
|
-
}
|
|
14
|
-
type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
15
|
-
dev: boolean;
|
|
16
|
-
configEnv: ConfigEnv;
|
|
17
|
-
};
|
|
18
|
-
declare type __ΩVitePluginOptions = any[];
|
|
19
|
-
declare type __ΩVitePluginUserConfig = any[];
|
|
20
|
-
declare type __ΩVitePluginResolvedConfig = any[];
|
|
21
|
-
declare type __ΩVitePluginContext = any[];
|
|
22
|
-
//#endregion
|
|
23
|
-
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
|
24
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
1
|
+
import "../build-CKSRktJj.mjs";
|
|
2
|
+
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-DIEwkIcq.mjs";
|
|
3
|
+
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_resolve_options = require('./resolve-options-CGWH6O9W.cjs');
|
|
2
|
+
let __powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
3
|
+
let unplugin = require("unplugin");
|
|
4
|
+
|
|
5
|
+
//#region src/helpers/unplugin.ts
|
|
6
|
+
function createVitePlugin(context) {
|
|
7
|
+
return (0, unplugin.createVitePlugin)((0, __powerlines_core_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, 'createVitePlugin', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return createVitePlugin;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createUnplugin } from "@powerlines/core/lib/unplugin";
|
|
2
|
+
import { createVitePlugin } from "unplugin";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.ts
|
|
5
|
+
function createVitePlugin$1(context) {
|
|
6
|
+
return createVitePlugin(createUnplugin(context))({});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createVitePlugin$1 as t };
|
|
11
|
+
//# sourceMappingURL=unplugin-CmW69N5s.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-CmW69N5s.mjs","names":["createVitePlugin","createViteUnplugin"],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createVitePlugin as createViteUnplugin } from \"unplugin\";\nimport { VitePluginContext } from \"../types/plugin\";\n\nexport function createVitePlugin(context: VitePluginContext) {\n return createViteUnplugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgBA,mBAAiB,SAA4B;AAC3D,QAAOC,iBAAmB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as VitePluginContext } from "./plugin-DIEwkIcq.mjs";
|
|
2
|
+
import * as vite0 from "vite";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createVitePlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-DIdD8ka4.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-DIdD8ka4.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,KAAA,CAAA,cAAA,KAAA,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as VitePluginContext } from "./plugin-CfromG2s.cjs";
|
|
2
|
+
import * as vite0 from "vite";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createVitePlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-hWdrpmFt.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-hWdrpmFt.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,KAAA,CAAA,cAAA,KAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-vite",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.302",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"keywords": ["vite", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
"peerDependencies": { "vite": ">=8.0.0" },
|
|
80
80
|
"peerDependenciesMeta": { "vite": { "optional": false } },
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@powerlines/core": "^0.0.
|
|
83
|
-
"@powerlines/plugin-rolldown": "^0.7.
|
|
84
|
-
"@powerlines/plugin-rollup": "^0.7.
|
|
85
|
-
"@powerlines/plugin-esbuild": "^0.13.
|
|
82
|
+
"@powerlines/core": "^0.0.11",
|
|
83
|
+
"@powerlines/plugin-rolldown": "^0.7.310",
|
|
84
|
+
"@powerlines/plugin-rollup": "^0.7.310",
|
|
85
|
+
"@powerlines/plugin-esbuild": "^0.13.309",
|
|
86
86
|
"defu": "^6.1.4",
|
|
87
87
|
"unplugin": "3.0.0-beta.3"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": { "@types/node": "^25.3.3", "vite": "8.0.0-beta.2" },
|
|
90
90
|
"publishConfig": { "access": "public" },
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "645a902416b92ae709b2ae786c21d3ec0be09258"
|
|
92
92
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require('../plugin-utils/paths.cjs');
|
|
2
|
-
require("@stryke/convert/parse-type-definition");
|
|
3
|
-
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
4
|
-
require("@stryke/hash/murmurhash");
|
|
5
|
-
require("@stryke/helpers/get-unique");
|
|
6
|
-
let __stryke_path_append = require("@stryke/path/append");
|
|
7
|
-
require("@stryke/path/is-type");
|
|
8
|
-
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
9
|
-
require("@stryke/path/replace");
|
|
10
|
-
require("@stryke/type-checks/is-object");
|
|
11
|
-
require("@stryke/type-checks/is-regexp");
|
|
12
|
-
require("@stryke/type-checks/is-set-string");
|
|
13
|
-
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "../plugin-utils/paths.mjs";
|
|
2
|
-
import "@stryke/convert/parse-type-definition";
|
|
3
|
-
import { toArray } from "@stryke/convert/to-array";
|
|
4
|
-
import "@stryke/hash/murmurhash";
|
|
5
|
-
import "@stryke/helpers/get-unique";
|
|
6
|
-
import { appendPath } from "@stryke/path/append";
|
|
7
|
-
import "@stryke/path/is-type";
|
|
8
|
-
import { joinPaths } from "@stryke/path/join-paths";
|
|
9
|
-
import "@stryke/path/replace";
|
|
10
|
-
import "@stryke/type-checks/is-object";
|
|
11
|
-
import "@stryke/type-checks/is-regexp";
|
|
12
|
-
import "@stryke/type-checks/is-set-string";
|
|
13
|
-
import { isString } from "@stryke/type-checks/is-string";
|
|
14
|
-
|
|
15
|
-
export { };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
3
|
-
let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
4
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
5
|
-
require("@storm-software/config-tools/logger");
|
|
6
|
-
require("@storm-software/config-tools/utilities/colors");
|
|
7
|
-
require("@stryke/helpers/noop");
|
|
8
|
-
let chalk = require("chalk");
|
|
9
|
-
chalk = require_rolldown_runtime.__toESM(chalk);
|
|
10
|
-
|
|
11
|
-
//#region ../core/src/lib/logger.ts
|
|
12
|
-
const BADGE_COLORS = [
|
|
13
|
-
"#00A0DD",
|
|
14
|
-
"#6FCE4E",
|
|
15
|
-
"#FBBF24",
|
|
16
|
-
"#F43F5E",
|
|
17
|
-
"#3B82F6",
|
|
18
|
-
"#A855F7",
|
|
19
|
-
"#469592",
|
|
20
|
-
"#288EDF",
|
|
21
|
-
"#D8B4FE",
|
|
22
|
-
"#10B981",
|
|
23
|
-
"#EF4444",
|
|
24
|
-
"#F0EC56",
|
|
25
|
-
"#F472B6",
|
|
26
|
-
"#22D3EE",
|
|
27
|
-
"#EAB308",
|
|
28
|
-
"#84CC16",
|
|
29
|
-
"#F87171",
|
|
30
|
-
"#0EA5E9",
|
|
31
|
-
"#D946EF",
|
|
32
|
-
"#FACC15",
|
|
33
|
-
"#34D399",
|
|
34
|
-
"#8B5CF6"
|
|
35
|
-
];
|
|
36
|
-
const extendLog = (logFn, name) => {
|
|
37
|
-
return (type, ...args) => logFn(type, ` ${chalk.default.inverse.hex(BADGE_COLORS[name.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0])(` ${(0, __stryke_string_format_title_case.titleCase)(name)} `)} ${args.join(" ")} `);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
exports.extendLog = extendLog;
|