@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,13 @@
|
|
|
1
|
+
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
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 as n, ViteOptions as t };
|
|
13
|
+
//# sourceMappingURL=build-CKSRktJj.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-CKSRktJj.d.mts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,WAAA,GAAc,KACxB;;AADF;;EAA0B,YAAA,CAAA,EAeT,IAfS,CAeJ,sBAfI,EAAA,YAAA,CAAA;CAeJ;AAAL,8BAAA,GAAA,EAAA"}
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
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 as n, ViteOptions as t };
|
|
13
|
+
//# sourceMappingURL=build-DVley5x8.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-DVley5x8.d.cts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,WAAA,GAAc,KACxB;;AADF;;EAA0B,YAAA,CAAA,EAeT,IAfS,CAeJ,sBAfI,EAAA,YAAA,CAAA;CAeJ;AAAL,8BAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
1
|
+
const require_resolve_options = require('../resolve-options-CGWH6O9W.cjs');
|
|
2
|
+
const require_unplugin = require('../unplugin-BIIMkEyS.cjs');
|
|
3
|
+
require('../helpers-yB1XkvQI.cjs');
|
|
3
4
|
|
|
4
|
-
exports.DEFAULT_VITE_CONFIG =
|
|
5
|
-
exports.createVitePlugin =
|
|
6
|
-
exports.resolveOptions =
|
|
5
|
+
exports.DEFAULT_VITE_CONFIG = require_resolve_options.DEFAULT_VITE_CONFIG;
|
|
6
|
+
exports.createVitePlugin = require_unplugin.createVitePlugin;
|
|
7
|
+
exports.resolveOptions = require_resolve_options.resolveOptions;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../build-DVley5x8.cjs";
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-Cjw3kuSJ.cjs";
|
|
3
|
+
import "../plugin-CfromG2s.cjs";
|
|
4
|
+
import { t as createVitePlugin } from "../unplugin-hWdrpmFt.cjs";
|
|
5
|
+
import "../index-CtCMUyZA.cjs";
|
|
3
6
|
export { DEFAULT_VITE_CONFIG, createVitePlugin, resolveOptions };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../build-CKSRktJj.mjs";
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-DDD8d7th.mjs";
|
|
3
|
+
import "../plugin-DIEwkIcq.mjs";
|
|
4
|
+
import { t as createVitePlugin } from "../unplugin-DIdD8ka4.mjs";
|
|
5
|
+
import "../index-C-svZlpj.mjs";
|
|
3
6
|
export { DEFAULT_VITE_CONFIG, createVitePlugin, resolveOptions };
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createVitePlugin } from "
|
|
1
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-CZfGIJwj.mjs";
|
|
2
|
+
import { t as createVitePlugin } from "../unplugin-CmW69N5s.mjs";
|
|
3
|
+
import "../helpers-DvTULET6.mjs";
|
|
3
4
|
|
|
4
5
|
export { DEFAULT_VITE_CONFIG, createVitePlugin, resolveOptions };
|
|
@@ -1,71 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_resolve_options = require('../plugin-esbuild/src/helpers/resolve-options.cjs');
|
|
3
|
-
const require_resolve_options$1 = require('../plugin-rollup/src/helpers/resolve-options.cjs');
|
|
4
|
-
const require_resolve_options$2 = require('../plugin-rolldown/src/helpers/resolve-options.cjs');
|
|
5
|
-
let defu = require("defu");
|
|
6
|
-
defu = require_rolldown_runtime.__toESM(defu);
|
|
7
|
-
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
1
|
+
const require_resolve_options = require('../resolve-options-CGWH6O9W.cjs');
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
resolve: { extensions: [
|
|
12
|
-
".mjs",
|
|
13
|
-
".js",
|
|
14
|
-
".mts",
|
|
15
|
-
".ts",
|
|
16
|
-
".jsx",
|
|
17
|
-
".tsx",
|
|
18
|
-
".json"
|
|
19
|
-
] },
|
|
20
|
-
json: { stringify: true },
|
|
21
|
-
logLevel: "silent",
|
|
22
|
-
clearScreen: true
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Resolves the options for [vite](https://vitejs.dev/).
|
|
26
|
-
*
|
|
27
|
-
* @param context - The build context.
|
|
28
|
-
* @returns The resolved options.
|
|
29
|
-
*/
|
|
30
|
-
function resolveOptions(context) {
|
|
31
|
-
return (0, defu.default)({ resolve: {
|
|
32
|
-
alias: Object.entries(context.alias).reduce((ret, [id, path]) => {
|
|
33
|
-
if (!ret.find((e) => e.find === id)) ret.push({
|
|
34
|
-
find: id,
|
|
35
|
-
replacement: path
|
|
36
|
-
});
|
|
37
|
-
else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
38
|
-
return ret;
|
|
39
|
-
}, []),
|
|
40
|
-
dedupe: context.config.resolve.dedupe,
|
|
41
|
-
mainFields: context.config.resolve.mainFields,
|
|
42
|
-
conditions: context.config.resolve.conditions,
|
|
43
|
-
extensions: context.config.resolve.extensions
|
|
44
|
-
} }, context.config.vite ? (0, defu.default)(context.config.vite, { optimizeDeps: context.config.vite?.optimizeDeps ?? {} }, { optimizeDeps: { extensions: context.config.resolve.extensions } }) : {}, {
|
|
45
|
-
define: context.config.define,
|
|
46
|
-
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,
|
|
47
|
-
platform: context.config.platform,
|
|
48
|
-
mode: context.config.mode === "development" ? "development" : "production",
|
|
49
|
-
cacheDir: (0, __stryke_path_join_paths.joinPaths)(context.cachePath, "vite"),
|
|
50
|
-
build: {
|
|
51
|
-
minify: context.config.mode !== "development",
|
|
52
|
-
metafile: context.config.mode === "development",
|
|
53
|
-
sourcemap: context.config.mode === "development",
|
|
54
|
-
outDir: context.config.output.buildPath,
|
|
55
|
-
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
56
|
-
tsconfigRaw: context.tsconfig.tsconfigJson
|
|
57
|
-
},
|
|
58
|
-
esbuild: require_resolve_options.resolveOptions(context),
|
|
59
|
-
optimizeDeps: {
|
|
60
|
-
rolldownOptions: require_resolve_options$2.resolveOptions(context),
|
|
61
|
-
rollupOptions: require_resolve_options$1.resolveOptions(context),
|
|
62
|
-
esbuildOptions: require_resolve_options.resolveOptions(context)
|
|
63
|
-
},
|
|
64
|
-
logLevel: context.config.logLevel ?? void 0,
|
|
65
|
-
envDir: context.config.root
|
|
66
|
-
}, DEFAULT_VITE_CONFIG);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
//#endregion
|
|
70
|
-
exports.DEFAULT_VITE_CONFIG = DEFAULT_VITE_CONFIG;
|
|
71
|
-
exports.resolveOptions = resolveOptions;
|
|
3
|
+
exports.DEFAULT_VITE_CONFIG = require_resolve_options.DEFAULT_VITE_CONFIG;
|
|
4
|
+
exports.resolveOptions = require_resolve_options.resolveOptions;
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
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 { DEFAULT_VITE_CONFIG, resolveOptions };
|
|
15
|
-
//# sourceMappingURL=resolve-options.d.cts.map
|
|
1
|
+
import "../build-DVley5x8.cjs";
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-Cjw3kuSJ.cjs";
|
|
3
|
+
export { DEFAULT_VITE_CONFIG, resolveOptions };
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/resolve-options.d.ts
|
|
6
|
-
declare const DEFAULT_VITE_CONFIG: Partial<ViteOptions>;
|
|
7
|
-
/**
|
|
8
|
-
* Resolves the options for [vite](https://vitejs.dev/).
|
|
9
|
-
*
|
|
10
|
-
* @param context - The build context.
|
|
11
|
-
* @returns The resolved options.
|
|
12
|
-
*/
|
|
13
|
-
declare function resolveOptions(context: Context): ViteOptions;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { DEFAULT_VITE_CONFIG, resolveOptions };
|
|
16
|
-
//# sourceMappingURL=resolve-options.d.mts.map
|
|
1
|
+
import "../build-CKSRktJj.mjs";
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-DDD8d7th.mjs";
|
|
3
|
+
export { DEFAULT_VITE_CONFIG, resolveOptions };
|
|
@@ -1,69 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { resolveOptions as resolveOptions$3 } from "../plugin-rollup/src/helpers/resolve-options.mjs";
|
|
3
|
-
import { resolveOptions as resolveOptions$2 } from "../plugin-rolldown/src/helpers/resolve-options.mjs";
|
|
4
|
-
import defu from "defu";
|
|
5
|
-
import { joinPaths } from "@stryke/path/join-paths";
|
|
1
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-CZfGIJwj.mjs";
|
|
6
2
|
|
|
7
|
-
|
|
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(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$1(context),
|
|
57
|
-
optimizeDeps: {
|
|
58
|
-
rolldownOptions: resolveOptions$2(context),
|
|
59
|
-
rollupOptions: resolveOptions$3(context),
|
|
60
|
-
esbuildOptions: resolveOptions$1(context)
|
|
61
|
-
},
|
|
62
|
-
logLevel: context.config.logLevel ?? void 0,
|
|
63
|
-
envDir: context.config.root
|
|
64
|
-
}, DEFAULT_VITE_CONFIG);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
//#endregion
|
|
68
|
-
export { DEFAULT_VITE_CONFIG, resolveOptions };
|
|
69
|
-
//# sourceMappingURL=resolve-options.mjs.map
|
|
3
|
+
export { DEFAULT_VITE_CONFIG, resolveOptions };
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_plugin = require('../core/src/lib/unplugin/plugin.cjs');
|
|
3
|
-
require('../core/src/lib/unplugin/index.cjs');
|
|
4
|
-
let unplugin = require("unplugin");
|
|
1
|
+
const require_unplugin = require('../unplugin-BIIMkEyS.cjs');
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
function createVitePlugin(context) {
|
|
8
|
-
return (0, unplugin.createVitePlugin)(require_plugin.createUnplugin(context))({});
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.createVitePlugin = createVitePlugin;
|
|
3
|
+
exports.createVitePlugin = require_unplugin.createVitePlugin;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createVitePlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.cts.map
|
|
1
|
+
import "../build-DVley5x8.cjs";
|
|
2
|
+
import "../plugin-CfromG2s.cjs";
|
|
3
|
+
import { t as createVitePlugin } from "../unplugin-hWdrpmFt.cjs";
|
|
4
|
+
export { createVitePlugin };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createVitePlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.mts.map
|
|
1
|
+
import "../build-CKSRktJj.mjs";
|
|
2
|
+
import "../plugin-DIEwkIcq.mjs";
|
|
3
|
+
import { t as createVitePlugin } from "../unplugin-DIdD8ka4.mjs";
|
|
4
|
+
export { createVitePlugin };
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../core/src/lib/unplugin/index.mjs";
|
|
3
|
-
import { createVitePlugin as createVitePlugin$1 } from "unplugin";
|
|
1
|
+
import { t as createVitePlugin } from "../unplugin-CmW69N5s.mjs";
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
function createVitePlugin(context) {
|
|
7
|
-
return createVitePlugin$1(createUnplugin(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { createVitePlugin };
|
|
12
|
-
//# sourceMappingURL=unplugin.mjs.map
|
|
3
|
+
export { createVitePlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
require('./
|
|
2
|
+
const require_resolve_options = require('./resolve-options-CGWH6O9W.cjs');
|
|
3
|
+
const require_unplugin = require('./unplugin-BIIMkEyS.cjs');
|
|
4
|
+
require('./helpers-yB1XkvQI.cjs');
|
|
5
|
+
require('./build-DJTI0ZMx.cjs');
|
|
6
|
+
require('./plugin-D5qyQPqC.cjs');
|
|
7
|
+
require('./types-D208vOSb.cjs');
|
|
6
8
|
let defu = require("defu");
|
|
7
|
-
defu =
|
|
9
|
+
defu = require_resolve_options.__toESM(defu);
|
|
8
10
|
let vite = require("vite");
|
|
9
11
|
|
|
10
12
|
//#region src/index.ts
|
|
@@ -19,7 +21,7 @@ const plugin = (options = {}) => {
|
|
|
19
21
|
return {
|
|
20
22
|
output: { format: ["cjs", "esm"] },
|
|
21
23
|
vite: {
|
|
22
|
-
...
|
|
24
|
+
...require_resolve_options.DEFAULT_VITE_CONFIG,
|
|
23
25
|
...options
|
|
24
26
|
},
|
|
25
27
|
singleBuild: true
|
|
@@ -33,16 +35,16 @@ const plugin = (options = {}) => {
|
|
|
33
35
|
await (0, vite.build)((0, defu.default)({
|
|
34
36
|
config: false,
|
|
35
37
|
entry: this.entry,
|
|
36
|
-
environments: Object.fromEntries(Object.entries(environments).map(([name, env]) => [name,
|
|
37
|
-
},
|
|
38
|
+
environments: Object.fromEntries(Object.entries(environments).map(([name, env]) => [name, require_resolve_options.resolveOptions(env)]))
|
|
39
|
+
}, require_resolve_options.resolveOptions(this), { plugins: [require_unplugin.createVitePlugin(this)] }));
|
|
38
40
|
}
|
|
39
41
|
};
|
|
40
42
|
};
|
|
41
43
|
var src_default = plugin;
|
|
42
44
|
|
|
43
45
|
//#endregion
|
|
44
|
-
exports.DEFAULT_VITE_CONFIG =
|
|
45
|
-
exports.createVitePlugin =
|
|
46
|
+
exports.DEFAULT_VITE_CONFIG = require_resolve_options.DEFAULT_VITE_CONFIG;
|
|
47
|
+
exports.createVitePlugin = require_unplugin.createVitePlugin;
|
|
46
48
|
exports.default = src_default;
|
|
47
49
|
exports.plugin = plugin;
|
|
48
|
-
exports.resolveOptions =
|
|
50
|
+
exports.resolveOptions = require_resolve_options.resolveOptions;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { n as __ΩViteOptions, t as ViteOptions } from "./build-DVley5x8.cjs";
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "./resolve-options-Cjw3kuSJ.cjs";
|
|
3
|
+
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";
|
|
4
|
+
import { t as createVitePlugin } from "./unplugin-hWdrpmFt.cjs";
|
|
5
|
+
import "./index-CtCMUyZA.cjs";
|
|
6
|
+
import "./index-CFG0_wK4.cjs";
|
|
7
|
+
import { Plugin } from "@powerlines/core/types";
|
|
6
8
|
|
|
7
9
|
//#region src/index.d.ts
|
|
8
10
|
/**
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;cAoCa,0BAA2B,oBAAoB,6BACjD,sBACR,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import "
|
|
8
|
-
import "./types/index.mjs";
|
|
1
|
+
import { n as __ΩViteOptions, t as ViteOptions } from "./build-CKSRktJj.mjs";
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "./resolve-options-DDD8d7th.mjs";
|
|
3
|
+
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";
|
|
4
|
+
import { t as createVitePlugin } from "./unplugin-DIdD8ka4.mjs";
|
|
5
|
+
import "./index-C-svZlpj.mjs";
|
|
6
|
+
import "./index-B8OHl-c_.mjs";
|
|
7
|
+
import { Plugin } from "@powerlines/core/types";
|
|
9
8
|
|
|
10
9
|
//#region src/index.d.ts
|
|
11
10
|
/**
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;cAoCa,0BAA2B,oBAAoB,6BACjD,sBACR,OAAO"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createVitePlugin } from "./
|
|
3
|
-
import "./helpers
|
|
1
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "./resolve-options-CZfGIJwj.mjs";
|
|
2
|
+
import { t as createVitePlugin } from "./unplugin-CmW69N5s.mjs";
|
|
3
|
+
import "./helpers-DvTULET6.mjs";
|
|
4
|
+
import "./build-D_6wweLB.mjs";
|
|
5
|
+
import "./plugin-HyYPEfea.mjs";
|
|
6
|
+
import "./types-Cn_AzV39.mjs";
|
|
4
7
|
import defu from "defu";
|
|
5
8
|
import { build } from "vite";
|
|
6
9
|
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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, Plugin } from \"@powerlines/core/types\";\nimport defu from \"defu\";\nimport { build, InlineConfig } from \"vite\";\nimport { DEFAULT_VITE_CONFIG, resolveOptions } from \"./helpers/resolve-options\";\nimport { createVitePlugin } from \"./helpers/unplugin\";\nimport { UNSAFE_VitePluginContext } from \"./types/_internal\";\nimport {\n VitePluginContext,\n VitePluginOptions,\n VitePluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <TContext extends VitePluginContext = VitePluginContext>(\n options: VitePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"vite\",\n config() {\n this.trace(\n \"Providing default configuration for the Powerlines `vite` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n vite: {\n ...DEFAULT_VITE_CONFIG,\n ...options\n },\n singleBuild: true\n } as Partial<VitePluginResolvedConfig>;\n },\n async build() {\n this.trace(`Building the Powerlines plugin.`);\n\n const environments = (this as unknown as UNSAFE_VitePluginContext)\n ?.$$internal?.api?.context?.environments;\n if (!environments || Object.keys(environments).length === 0) {\n throw new Error(\n `No environments found in the Powerlines context. At least one environment should have been generated - please report this issue to https://github.com/storm-software/powerlines/issues.`\n );\n }\n\n this.trace(\n `Running Vite for ${Object.keys(environments).length} environments.`\n );\n\n const config = defu(\n {\n config: false,\n entry: this.entry,\n environments: Object.fromEntries(\n Object.entries(environments).map(([name, env]) => [\n name,\n resolveOptions(env as Context)\n ])\n )\n },\n resolveOptions(this),\n {\n plugins: [createVitePlugin(this)]\n }\n );\n\n await build(config as InlineConfig);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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, Plugin } from \"@powerlines/core/types\";\nimport defu from \"defu\";\nimport { build, InlineConfig } from \"vite\";\nimport { DEFAULT_VITE_CONFIG, resolveOptions } from \"./helpers/resolve-options\";\nimport { createVitePlugin } from \"./helpers/unplugin\";\nimport { UNSAFE_VitePluginContext } from \"./types/_internal\";\nimport {\n VitePluginContext,\n VitePluginOptions,\n VitePluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <TContext extends VitePluginContext = VitePluginContext>(\n options: VitePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"vite\",\n config() {\n this.trace(\n \"Providing default configuration for the Powerlines `vite` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n vite: {\n ...DEFAULT_VITE_CONFIG,\n ...options\n },\n singleBuild: true\n } as Partial<VitePluginResolvedConfig>;\n },\n async build() {\n this.trace(`Building the Powerlines plugin.`);\n\n const environments = (this as unknown as UNSAFE_VitePluginContext)\n ?.$$internal?.api?.context?.environments;\n if (!environments || Object.keys(environments).length === 0) {\n throw new Error(\n `No environments found in the Powerlines context. At least one environment should have been generated - please report this issue to https://github.com/storm-software/powerlines/issues.`\n );\n }\n\n this.trace(\n `Running Vite for ${Object.keys(environments).length} environments.`\n );\n\n const config = defu(\n {\n config: false,\n entry: this.entry,\n environments: Object.fromEntries(\n Object.entries(environments).map(([name, env]) => [\n name,\n resolveOptions(env as Context)\n ])\n )\n },\n resolveOptions(this),\n {\n plugins: [createVitePlugin(this)]\n }\n );\n\n await build(config as InlineConfig);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AAoCA,MAAa,UACX,UAA6B,EAAE,KACV;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,0EACD;AAED,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,MAAM;KACJ,GAAG;KACH,GAAG;KACJ;IACD,aAAa;IACd;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,kCAAkC;GAE7C,MAAM,eAAgB,MAClB,YAAY,KAAK,SAAS;AAC9B,OAAI,CAAC,gBAAgB,OAAO,KAAK,aAAa,CAAC,WAAW,EACxD,OAAM,IAAI,MACR,0LACD;AAGH,QAAK,MACH,oBAAoB,OAAO,KAAK,aAAa,CAAC,OAAO,gBACtD;AAmBD,SAAM,MAjBS,KACb;IACE,QAAQ;IACR,OAAO,KAAK;IACZ,cAAc,OAAO,YACnB,OAAO,QAAQ,aAAa,CAAC,KAAK,CAAC,MAAM,SAAS,CAChD,MACA,eAAe,IAAe,CAC/B,CAAC,CACH;IACF,EACD,eAAe,KAAK,EACpB,EACE,SAAS,CAAC,iBAAiB,KAAK,CAAC,EAClC,CACF,CAEkC;;EAEtC;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as ViteOptions } from "./build-DVley5x8.cjs";
|
|
2
|
+
import { ConfigEnv, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core/types";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type VitePluginOptions = Partial<ViteOptions>;
|
|
6
|
+
interface VitePluginUserConfig extends UserConfig {
|
|
7
|
+
vite?: VitePluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface VitePluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
vite: ViteOptions;
|
|
11
|
+
}
|
|
12
|
+
type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
13
|
+
dev: boolean;
|
|
14
|
+
configEnv: ConfigEnv;
|
|
15
|
+
};
|
|
16
|
+
declare type __ΩVitePluginOptions = any[];
|
|
17
|
+
declare type __ΩVitePluginUserConfig = any[];
|
|
18
|
+
declare type __ΩVitePluginResolvedConfig = any[];
|
|
19
|
+
declare type __ΩVitePluginContext = any[];
|
|
20
|
+
//#endregion
|
|
21
|
+
export { __ΩVitePluginContext as a, __ΩVitePluginUserConfig as c, VitePluginUserConfig as i, VitePluginOptions as n, __ΩVitePluginOptions as o, VitePluginResolvedConfig as r, __ΩVitePluginResolvedConfig as s, VitePluginContext as t };
|
|
22
|
+
//# sourceMappingURL=plugin-CfromG2s.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-CfromG2s.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KA0BY,iBAAA,GAAoB,QAAQ;UAEvB,oBAAA,SAA6B;EAFlC,IAAA,CAAA,EAGH,iBAHoB;AAE7B;AAIiB,UAAA,wBAAA,SAAiC,cAAA,CAAA;EAItC,IAAA,EAHJ,WAGI;;AACyC,KADzC,iBACyC,CAAA,wBAA3B,wBAA2B,GAAA,wBAAA,CAAA,GACjD,aADiD,CACnC,eADmC,CAAA,GAAA;EACnC,GAAA,EAAA,OAAA;EAAd,SAAA,EAES,SAFT;CAES;AAAS,oCAAA,GAAA,EAAA"}
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as ViteOptions } from "./build-CKSRktJj.mjs";
|
|
2
|
+
import { ConfigEnv, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core/types";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type VitePluginOptions = Partial<ViteOptions>;
|
|
6
|
+
interface VitePluginUserConfig extends UserConfig {
|
|
7
|
+
vite?: VitePluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface VitePluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
vite: ViteOptions;
|
|
11
|
+
}
|
|
12
|
+
type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
13
|
+
dev: boolean;
|
|
14
|
+
configEnv: ConfigEnv;
|
|
15
|
+
};
|
|
16
|
+
declare type __ΩVitePluginOptions = any[];
|
|
17
|
+
declare type __ΩVitePluginUserConfig = any[];
|
|
18
|
+
declare type __ΩVitePluginResolvedConfig = any[];
|
|
19
|
+
declare type __ΩVitePluginContext = any[];
|
|
20
|
+
//#endregion
|
|
21
|
+
export { __ΩVitePluginContext as a, __ΩVitePluginUserConfig as c, VitePluginUserConfig as i, VitePluginOptions as n, __ΩVitePluginOptions as o, VitePluginResolvedConfig as r, __ΩVitePluginResolvedConfig as s, VitePluginContext as t };
|
|
22
|
+
//# sourceMappingURL=plugin-DIEwkIcq.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-DIEwkIcq.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KA0BY,iBAAA,GAAoB,QAAQ;UAEvB,oBAAA,SAA6B;EAFlC,IAAA,CAAA,EAGH,iBAHoB;AAE7B;AAIiB,UAAA,wBAAA,SAAiC,cAAA,CAAA;EAItC,IAAA,EAHJ,WAGI;;AACyC,KADzC,iBACyC,CAAA,wBAA3B,wBAA2B,GAAA,wBAAA,CAAA,GACjD,aADiD,CACnC,eADmC,CAAA,GAAA;EACnC,GAAA,EAAA,OAAA;EAAd,SAAA,EAES,SAFT;CAES;AAAS,oCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|