@powerlines/plugin-vite 0.14.359 → 0.14.361
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/package.json +6 -6
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/helpers/index.cjs +0 -7
- package/dist/helpers/index.d.cts +0 -3
- package/dist/helpers/index.d.mts +0 -3
- package/dist/helpers/index.mjs +0 -4
- package/dist/helpers/resolve-options.cjs +0 -72
- package/dist/helpers/resolve-options.d.cts +0 -15
- package/dist/helpers/resolve-options.d.cts.map +0 -1
- package/dist/helpers/resolve-options.d.mts +0 -15
- package/dist/helpers/resolve-options.d.mts.map +0 -1
- package/dist/helpers/resolve-options.mjs +0 -69
- package/dist/helpers/resolve-options.mjs.map +0 -1
- package/dist/helpers/unplugin.cjs +0 -12
- package/dist/helpers/unplugin.d.cts +0 -8
- package/dist/helpers/unplugin.d.cts.map +0 -1
- package/dist/helpers/unplugin.d.mts +0 -8
- package/dist/helpers/unplugin.d.mts.map +0 -1
- package/dist/helpers/unplugin.mjs +0 -11
- package/dist/helpers/unplugin.mjs.map +0 -1
- package/dist/index.cjs +0 -47
- package/dist/index.d.cts +0 -19
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -19
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -41
- package/dist/index.mjs.map +0 -1
- package/dist/types/_internal.cjs +0 -0
- package/dist/types/_internal.d.cts +0 -14
- package/dist/types/_internal.d.cts.map +0 -1
- package/dist/types/_internal.d.mts +0 -14
- package/dist/types/_internal.d.mts.map +0 -1
- package/dist/types/_internal.mjs +0 -1
- package/dist/types/build.cjs +0 -0
- package/dist/types/build.d.cts +0 -13
- package/dist/types/build.d.cts.map +0 -1
- package/dist/types/build.d.mts +0 -13
- package/dist/types/build.d.mts.map +0 -1
- package/dist/types/build.mjs +0 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -3
- package/dist/types/index.d.mts +0 -3
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +0 -22
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts +0 -22
- package/dist/types/plugin.d.mts.map +0 -1
- package/dist/types/plugin.mjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-vite",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.361",
|
|
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.
|
|
83
|
-
"@powerlines/plugin-rolldown": "^0.7.
|
|
84
|
-
"@powerlines/plugin-rollup": "^0.7.
|
|
85
|
-
"@powerlines/plugin-esbuild": "^0.13.
|
|
82
|
+
"@powerlines/core": "^0.7.0",
|
|
83
|
+
"@powerlines/plugin-rolldown": "^0.7.368",
|
|
84
|
+
"@powerlines/plugin-rollup": "^0.7.366",
|
|
85
|
+
"@powerlines/plugin-esbuild": "^0.13.366",
|
|
86
86
|
"defu": "^6.1.4",
|
|
87
87
|
"unplugin": "^3.0.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": { "@types/node": "^25.5.0", "vite": "^8.0.0" },
|
|
90
90
|
"publishConfig": { "access": "public" },
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "c3243c1ec0fbacb4afd4bd3db20432f443334076"
|
|
92
92
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
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;
|
package/dist/helpers/index.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers_resolve_options = require('./resolve-options.cjs');
|
|
3
|
-
const require_helpers_unplugin = require('./unplugin.cjs');
|
|
4
|
-
|
|
5
|
-
exports.DEFAULT_VITE_CONFIG = require_helpers_resolve_options.DEFAULT_VITE_CONFIG;
|
|
6
|
-
exports.createVitePlugin = require_helpers_unplugin.createVitePlugin;
|
|
7
|
-
exports.resolveOptions = require_helpers_resolve_options.resolveOptions;
|
package/dist/helpers/index.d.cts
DELETED
package/dist/helpers/index.d.mts
DELETED
package/dist/helpers/index.mjs
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let defu = require("defu");
|
|
4
|
-
defu = require_runtime.__toESM(defu);
|
|
5
|
-
let _powerlines_plugin_esbuild_helpers_resolve_options = require("@powerlines/plugin-esbuild/helpers/resolve-options");
|
|
6
|
-
let _powerlines_plugin_rolldown_helpers_resolve_options = require("@powerlines/plugin-rolldown/helpers/resolve-options");
|
|
7
|
-
let _powerlines_plugin_rollup_helpers_resolve_options = require("@powerlines/plugin-rollup/helpers/resolve-options");
|
|
8
|
-
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
9
|
-
|
|
10
|
-
//#region src/helpers/resolve-options.ts
|
|
11
|
-
const DEFAULT_VITE_CONFIG = {
|
|
12
|
-
resolve: { extensions: [
|
|
13
|
-
".mjs",
|
|
14
|
-
".js",
|
|
15
|
-
".mts",
|
|
16
|
-
".ts",
|
|
17
|
-
".jsx",
|
|
18
|
-
".tsx",
|
|
19
|
-
".json"
|
|
20
|
-
] },
|
|
21
|
-
json: { stringify: true },
|
|
22
|
-
logLevel: "silent",
|
|
23
|
-
clearScreen: true
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Resolves the options for [vite](https://vitejs.dev/).
|
|
27
|
-
*
|
|
28
|
-
* @param context - The build context.
|
|
29
|
-
* @returns The resolved options.
|
|
30
|
-
*/
|
|
31
|
-
function resolveOptions(context) {
|
|
32
|
-
return (0, defu.default)({ resolve: {
|
|
33
|
-
alias: Object.entries(context.alias).reduce((ret, [id, path]) => {
|
|
34
|
-
if (!ret.find((e) => e.find === id)) ret.push({
|
|
35
|
-
find: id,
|
|
36
|
-
replacement: path
|
|
37
|
-
});
|
|
38
|
-
else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
39
|
-
return ret;
|
|
40
|
-
}, []),
|
|
41
|
-
dedupe: context.config.resolve.dedupe,
|
|
42
|
-
mainFields: context.config.resolve.mainFields,
|
|
43
|
-
conditions: context.config.resolve.conditions,
|
|
44
|
-
extensions: context.config.resolve.extensions
|
|
45
|
-
} }, context.config.vite ? (0, defu.default)(context.config.vite, { optimizeDeps: context.config.vite?.optimizeDeps ?? {} }, { optimizeDeps: { extensions: context.config.resolve.extensions } }) : {}, {
|
|
46
|
-
define: context.config.define,
|
|
47
|
-
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,
|
|
48
|
-
platform: context.config.platform,
|
|
49
|
-
mode: context.config.mode === "development" ? "development" : "production",
|
|
50
|
-
cacheDir: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "vite"),
|
|
51
|
-
build: {
|
|
52
|
-
minify: context.config.mode !== "development",
|
|
53
|
-
metafile: context.config.mode === "development",
|
|
54
|
-
sourcemap: context.config.mode === "development",
|
|
55
|
-
outDir: context.config.output.path,
|
|
56
|
-
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
57
|
-
tsconfigRaw: context.tsconfig.tsconfigJson
|
|
58
|
-
},
|
|
59
|
-
esbuild: (0, _powerlines_plugin_esbuild_helpers_resolve_options.resolveOptions)(context),
|
|
60
|
-
optimizeDeps: {
|
|
61
|
-
rolldownOptions: (0, _powerlines_plugin_rolldown_helpers_resolve_options.resolveOptions)(context),
|
|
62
|
-
rollupOptions: (0, _powerlines_plugin_rollup_helpers_resolve_options.resolveOptions)(context),
|
|
63
|
-
esbuildOptions: (0, _powerlines_plugin_esbuild_helpers_resolve_options.resolveOptions)(context)
|
|
64
|
-
},
|
|
65
|
-
logLevel: context.config.logLevel ?? void 0,
|
|
66
|
-
envDir: context.config.root
|
|
67
|
-
}, DEFAULT_VITE_CONFIG);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
//#endregion
|
|
71
|
-
exports.DEFAULT_VITE_CONFIG = DEFAULT_VITE_CONFIG;
|
|
72
|
-
exports.resolveOptions = resolveOptions;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ViteOptions } from "../types/build.cjs";
|
|
2
|
-
import { Context } from "@powerlines/core";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options.d.cts","names":[],"sources":["../../src/helpers/resolve-options.ts"],"mappings":";;;;cA4Ba,mBAAA,EAAqB,OAAA,CAAQ,WAAA;;AAA1C;;;;;iBAiBgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,WAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ViteOptions } from "../types/build.mjs";
|
|
2
|
-
import { Context } from "@powerlines/core";
|
|
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.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options.d.mts","names":[],"sources":["../../src/helpers/resolve-options.ts"],"mappings":";;;;cA4Ba,mBAAA,EAAqB,OAAA,CAAQ,WAAA;;AAA1C;;;;;iBAiBgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,WAAA"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import defu from "defu";
|
|
2
|
-
import { resolveOptions as resolveOptions$1 } from "@powerlines/plugin-esbuild/helpers/resolve-options";
|
|
3
|
-
import { resolveOptions as resolveOptions$2 } from "@powerlines/plugin-rolldown/helpers/resolve-options";
|
|
4
|
-
import { resolveOptions as resolveOptions$3 } 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(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.path,
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options.mjs","names":["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\";\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.path,\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,MAAa,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,SAAgB,eAAe,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,SAASA,iBAAsB,QAAQ;EACvC,cAAc;GACZ,iBAAiBC,iBAAuB,QAAQ;GAChD,eAAeC,iBAAqB,QAAQ;GAC5C,gBAAgBF,iBAAsB,QAAQ;GAC/C;EACD,UAAU,QAAQ,OAAO,YAAY;EACrC,QAAQ,QAAQ,OAAO;EACxB,EACD,oBACD"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
4
|
-
let unplugin = require("unplugin");
|
|
5
|
-
|
|
6
|
-
//#region src/helpers/unplugin.ts
|
|
7
|
-
function createVitePlugin(context) {
|
|
8
|
-
return (0, unplugin.createVitePlugin)((0, _powerlines_core_lib_unplugin.createUnplugin)(context))({});
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.createVitePlugin = createVitePlugin;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { VitePluginContext } from "../types/plugin.cjs";
|
|
2
|
-
import * as vite from "vite";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createVitePlugin(context: VitePluginContext): vite.Plugin<any> | vite.Plugin<any>[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createVitePlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,gBAAA,CAAiB,OAAA,EAAS,iBAAA,GAAiB,IAAA,CAAA,MAAA,QAAA,IAAA,CAAA,MAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { VitePluginContext } from "../types/plugin.mjs";
|
|
2
|
-
import * as vite from "vite";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createVitePlugin(context: VitePluginContext): vite.Plugin<any> | vite.Plugin<any>[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createVitePlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,gBAAA,CAAiB,OAAA,EAAS,iBAAA,GAAiB,IAAA,CAAA,MAAA,QAAA,IAAA,CAAA,MAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createUnplugin } from "@powerlines/core/lib/unplugin";
|
|
2
|
-
import { createVitePlugin as createVitePlugin$1 } from "unplugin";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createVitePlugin(context) {
|
|
6
|
-
return createVitePlugin$1(createUnplugin(context))({});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export { createVitePlugin };
|
|
11
|
-
//# sourceMappingURL=unplugin.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.mjs","names":["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,SAAgB,iBAAiB,SAA4B;AAC3D,QAAOA,mBAAmB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
|
package/dist/index.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
const require_helpers_resolve_options = require('./helpers/resolve-options.cjs');
|
|
4
|
-
const require_helpers_unplugin = require('./helpers/unplugin.cjs');
|
|
5
|
-
require('./helpers/index.cjs');
|
|
6
|
-
let defu = require("defu");
|
|
7
|
-
defu = require_runtime.__toESM(defu);
|
|
8
|
-
let vite = require("vite");
|
|
9
|
-
|
|
10
|
-
//#region src/index.ts
|
|
11
|
-
/**
|
|
12
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
13
|
-
*/
|
|
14
|
-
const plugin = (options = {}) => {
|
|
15
|
-
return {
|
|
16
|
-
name: "vite",
|
|
17
|
-
config() {
|
|
18
|
-
this.trace("Providing default configuration for the Powerlines `vite` build plugin.");
|
|
19
|
-
return {
|
|
20
|
-
output: { format: ["cjs", "esm"] },
|
|
21
|
-
vite: {
|
|
22
|
-
...require_helpers_resolve_options.DEFAULT_VITE_CONFIG,
|
|
23
|
-
...options
|
|
24
|
-
},
|
|
25
|
-
singleBuild: true
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
async build() {
|
|
29
|
-
this.trace(`Building the Powerlines plugin.`);
|
|
30
|
-
const environments = this?.$$internal?.api?.context?.environments;
|
|
31
|
-
if (!environments || Object.keys(environments).length === 0) throw new Error(`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.`);
|
|
32
|
-
this.trace(`Running Vite for ${Object.keys(environments).length} environments.`);
|
|
33
|
-
await (0, vite.build)((0, defu.default)({
|
|
34
|
-
config: false,
|
|
35
|
-
entry: this.entry,
|
|
36
|
-
environments: Object.fromEntries(Object.entries(environments).map(([name, env]) => [name, require_helpers_resolve_options.resolveOptions(env)]))
|
|
37
|
-
}, require_helpers_resolve_options.resolveOptions(this), { plugins: [require_helpers_unplugin.createVitePlugin(this)] }));
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
exports.DEFAULT_VITE_CONFIG = require_helpers_resolve_options.DEFAULT_VITE_CONFIG;
|
|
44
|
-
exports.createVitePlugin = require_helpers_unplugin.createVitePlugin;
|
|
45
|
-
exports.default = plugin;
|
|
46
|
-
exports.plugin = plugin;
|
|
47
|
-
exports.resolveOptions = require_helpers_resolve_options.resolveOptions;
|
package/dist/index.d.cts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ViteOptions, __ΩViteOptions } from "./types/build.cjs";
|
|
2
|
-
import { DEFAULT_VITE_CONFIG, resolveOptions } from "./helpers/resolve-options.cjs";
|
|
3
|
-
import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig } from "./types/plugin.cjs";
|
|
4
|
-
import { createVitePlugin } from "./helpers/unplugin.cjs";
|
|
5
|
-
import { Plugin } from "@powerlines/core";
|
|
6
|
-
|
|
7
|
-
//#region src/index.d.ts
|
|
8
|
-
declare module "@powerlines/core" {
|
|
9
|
-
interface Config {
|
|
10
|
-
vite?: VitePluginOptions;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
15
|
-
*/
|
|
16
|
-
declare const plugin: <TContext extends VitePluginContext = VitePluginContext>(options?: VitePluginOptions) => Plugin<TContext>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { DEFAULT_VITE_CONFIG, ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig, createVitePlugin, plugin as default, plugin, resolveOptions };
|
|
19
|
-
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAkCY,MAAA;IACR,IAAA,GAAO,iBAAA;EAAA;AAAA;AAJa;;;AAAA,cAWX,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ViteOptions, __ΩViteOptions } from "./types/build.mjs";
|
|
2
|
-
import { DEFAULT_VITE_CONFIG, resolveOptions } from "./helpers/resolve-options.mjs";
|
|
3
|
-
import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig } from "./types/plugin.mjs";
|
|
4
|
-
import { createVitePlugin } from "./helpers/unplugin.mjs";
|
|
5
|
-
import { Plugin } from "@powerlines/core";
|
|
6
|
-
|
|
7
|
-
//#region src/index.d.ts
|
|
8
|
-
declare module "@powerlines/core" {
|
|
9
|
-
interface Config {
|
|
10
|
-
vite?: VitePluginOptions;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
15
|
-
*/
|
|
16
|
-
declare const plugin: <TContext extends VitePluginContext = VitePluginContext>(options?: VitePluginOptions) => Plugin<TContext>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { DEFAULT_VITE_CONFIG, ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig, createVitePlugin, plugin as default, plugin, resolveOptions };
|
|
19
|
-
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAkCY,MAAA;IACR,IAAA,GAAO,iBAAA;EAAA;AAAA;AAJa;;;AAAA,cAWX,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_VITE_CONFIG, resolveOptions } from "./helpers/resolve-options.mjs";
|
|
2
|
-
import { createVitePlugin } from "./helpers/unplugin.mjs";
|
|
3
|
-
import "./helpers/index.mjs";
|
|
4
|
-
import defu from "defu";
|
|
5
|
-
import { build } from "vite";
|
|
6
|
-
|
|
7
|
-
//#region src/index.ts
|
|
8
|
-
/**
|
|
9
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
10
|
-
*/
|
|
11
|
-
const plugin = (options = {}) => {
|
|
12
|
-
return {
|
|
13
|
-
name: "vite",
|
|
14
|
-
config() {
|
|
15
|
-
this.trace("Providing default configuration for the Powerlines `vite` build plugin.");
|
|
16
|
-
return {
|
|
17
|
-
output: { format: ["cjs", "esm"] },
|
|
18
|
-
vite: {
|
|
19
|
-
...DEFAULT_VITE_CONFIG,
|
|
20
|
-
...options
|
|
21
|
-
},
|
|
22
|
-
singleBuild: true
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
async build() {
|
|
26
|
-
this.trace(`Building the Powerlines plugin.`);
|
|
27
|
-
const environments = this?.$$internal?.api?.context?.environments;
|
|
28
|
-
if (!environments || Object.keys(environments).length === 0) throw new Error(`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.`);
|
|
29
|
-
this.trace(`Running Vite for ${Object.keys(environments).length} environments.`);
|
|
30
|
-
await build(defu({
|
|
31
|
-
config: false,
|
|
32
|
-
entry: this.entry,
|
|
33
|
-
environments: Object.fromEntries(Object.entries(environments).map(([name, env]) => [name, resolveOptions(env)]))
|
|
34
|
-
}, resolveOptions(this), { plugins: [createVitePlugin(this)] }));
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
//#endregion
|
|
40
|
-
export { DEFAULT_VITE_CONFIG, createVitePlugin, plugin as default, plugin, resolveOptions };
|
|
41
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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\";\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\ndeclare module \"@powerlines/core\" {\n interface Config {\n vite?: VitePluginOptions;\n }\n}\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":";;;;;;;;;;AA0CA,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"}
|
package/dist/types/_internal.cjs
DELETED
|
File without changes
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { VitePluginResolvedConfig } from "./plugin.cjs";
|
|
2
|
-
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
|
-
|
|
4
|
-
//#region src/types/_internal.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Internal fields and methods for internal Vite plugin contexts
|
|
7
|
-
*
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
type UNSAFE_VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = UNSAFE_PluginContext<TResolvedConfig>;
|
|
11
|
-
declare type __ΩUNSAFE_VitePluginContext = any[];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { UNSAFE_VitePluginContext, __ΩUNSAFE_VitePluginContext };
|
|
14
|
-
//# sourceMappingURL=_internal.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;AA0BA;;;KAAY,wBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,oBAAA,CAAqB,eAAA;AAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { VitePluginResolvedConfig } from "./plugin.mjs";
|
|
2
|
-
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
|
-
|
|
4
|
-
//#region src/types/_internal.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Internal fields and methods for internal Vite plugin contexts
|
|
7
|
-
*
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
type UNSAFE_VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = UNSAFE_PluginContext<TResolvedConfig>;
|
|
11
|
-
declare type __ΩUNSAFE_VitePluginContext = any[];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { UNSAFE_VitePluginContext, __ΩUNSAFE_VitePluginContext };
|
|
14
|
-
//# sourceMappingURL=_internal.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;AA0BA;;;KAAY,wBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,oBAAA,CAAqB,eAAA;AAAA"}
|
package/dist/types/_internal.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types/build.cjs
DELETED
|
File without changes
|
package/dist/types/build.d.cts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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, __ΩViteOptions };
|
|
13
|
-
//# sourceMappingURL=build.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.cts","names":[],"sources":["../../src/types/build.ts"],"mappings":";;;KAoBY,WAAA,GAAc,IAAA,CACxB,UAAA;;AADF;;EAeE,YAAA,GAAe,IAAA,CAAK,sBAAA;AAAA;AAAA"}
|
package/dist/types/build.d.mts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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, __ΩViteOptions };
|
|
13
|
-
//# sourceMappingURL=build.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.mts","names":[],"sources":["../../src/types/build.ts"],"mappings":";;;KAoBY,WAAA,GAAc,IAAA,CACxB,UAAA;;AADF;;EAeE,YAAA,GAAe,IAAA,CAAK,sBAAA;AAAA;AAAA"}
|
package/dist/types/build.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types/index.cjs
DELETED
|
File without changes
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ViteOptions, __ΩViteOptions } from "./build.cjs";
|
|
2
|
-
import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig } from "./plugin.cjs";
|
|
3
|
-
export { ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
package/dist/types/index.d.mts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ViteOptions, __ΩViteOptions } from "./build.mjs";
|
|
2
|
-
import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig } from "./plugin.mjs";
|
|
3
|
-
export { ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
package/dist/types/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types/plugin.cjs
DELETED
|
File without changes
|
package/dist/types/plugin.d.cts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ViteOptions } from "./build.cjs";
|
|
2
|
-
import { ConfigEnv, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
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, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
|
22
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KA0BY,iBAAA,GAAoB,OAAA,CAAQ,WAAA;AAAA,UAEvB,oBAAA,SAA6B,UAAA;EAC5C,IAAA,GAAO,iBAAA;AAAA;AAAA,UAGQ,wBAAA,SAAiC,cAAA;EAChD,IAAA,EAAM,WAAA;AAAA;AAAA,KAGI,iBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,aAAA,CAAc,eAAA;EAChB,GAAA;EACA,SAAA,EAAW,SAAA;AAAA;AAAA"}
|
package/dist/types/plugin.d.mts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ViteOptions } from "./build.mjs";
|
|
2
|
-
import { ConfigEnv, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
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, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
|
22
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KA0BY,iBAAA,GAAoB,OAAA,CAAQ,WAAA;AAAA,UAEvB,oBAAA,SAA6B,UAAA;EAC5C,IAAA,GAAO,iBAAA;AAAA;AAAA,UAGQ,wBAAA,SAAiC,cAAA;EAChD,IAAA,EAAM,WAAA;AAAA;AAAA,KAGI,iBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,aAAA,CAAc,eAAA;EAChB,GAAA;EACA,SAAA,EAAW,SAAA;AAAA;AAAA"}
|
package/dist/types/plugin.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|