@powerlines/plugin-vite 0.14.239 → 0.14.241
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/helpers/index.cjs +3 -2
- package/dist/helpers/index.d.cts +3 -1
- package/dist/helpers/index.d.mts +3 -1
- package/dist/helpers/index.mjs +2 -1
- package/dist/helpers/unplugin.cjs +2 -10
- package/dist/helpers/unplugin.d.cts +2 -6
- package/dist/helpers/unplugin.d.mts +2 -6
- package/dist/helpers/unplugin.mjs +1 -8
- package/dist/helpers-CmEjzAn_.mjs +1 -0
- package/dist/helpers-LF26RHol.cjs +0 -0
- package/dist/index-BR1oNnaF.d.cts +1 -0
- package/dist/index-DEHBdV_z.d.mts +1 -0
- package/dist/index-_wQ5ClJU.d.cts +1 -0
- package/dist/index-vkGVyY9v.d.mts +1 -0
- package/dist/index.cjs +35 -6
- package/dist/index.d.cts +6 -5
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +6 -5
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-BU7JKrz_.d.mts +18 -0
- package/dist/plugin-BU7JKrz_.d.mts.map +1 -0
- package/dist/plugin-BnuFunBa.d.cts +18 -0
- package/dist/plugin-BnuFunBa.d.cts.map +1 -0
- package/dist/plugin-jZ9N9Mz-.mjs +1 -0
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +3 -0
- package/dist/types/internal.d.cts +3 -2
- package/dist/types/internal.d.cts.map +1 -0
- package/dist/types/internal.d.mts +3 -2
- package/dist/types/internal.d.mts.map +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -16
- package/dist/types/plugin.d.mts +1 -16
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-BtDR9wb1.mjs +1 -0
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/unplugin-2CsTDq6D.cjs +16 -0
- package/dist/unplugin-BnIDr7wC.d.mts +8 -0
- package/dist/unplugin-BnIDr7wC.d.mts.map +1 -0
- package/dist/unplugin-Cld_5zlU.d.cts +8 -0
- package/dist/unplugin-Cld_5zlU.d.cts.map +1 -0
- package/dist/unplugin-DhvrD56h.mjs +11 -0
- package/dist/unplugin-DhvrD56h.mjs.map +1 -0
- package/package.json +4 -4
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_unplugin = require('../unplugin-2CsTDq6D.cjs');
|
|
2
|
+
require('../helpers-LF26RHol.cjs');
|
|
2
3
|
|
|
3
|
-
exports.createVitePlugin =
|
|
4
|
+
exports.createVitePlugin = require_unplugin.createVitePlugin;
|
package/dist/helpers/index.d.cts
CHANGED
package/dist/helpers/index.d.mts
CHANGED
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
3
|
-
let unplugin = require("unplugin");
|
|
1
|
+
const require_unplugin = require('../unplugin-2CsTDq6D.cjs');
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
function createVitePlugin(context) {
|
|
7
|
-
return (0, unplugin.createVitePlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
exports.createVitePlugin = createVitePlugin;
|
|
3
|
+
exports.createVitePlugin = require_unplugin.createVitePlugin;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../plugin-BnuFunBa.cjs";
|
|
2
|
+
import { t as createVitePlugin } from "../unplugin-Cld_5zlU.cjs";
|
|
7
3
|
export { createVitePlugin };
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../plugin-BU7JKrz_.mjs";
|
|
2
|
+
import { t as createVitePlugin } from "../unplugin-BnIDr7wC.mjs";
|
|
7
3
|
export { createVitePlugin };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createVitePlugin as createVitePlugin$1 } from "unplugin";
|
|
1
|
+
import { t as createVitePlugin } from "../unplugin-DhvrD56h.mjs";
|
|
3
2
|
|
|
4
|
-
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createVitePlugin(context) {
|
|
6
|
-
return createVitePlugin$1(createUnplugin(context))({});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
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,9 +1,37 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
const require_unplugin = require('./unplugin-2CsTDq6D.cjs');
|
|
30
|
+
require('./helpers-LF26RHol.cjs');
|
|
31
|
+
require('./plugin-pBKbb5K9.cjs');
|
|
32
|
+
require('./types-o3zWarRp.cjs');
|
|
5
33
|
let defu = require("defu");
|
|
6
|
-
defu =
|
|
34
|
+
defu = __toESM(defu);
|
|
7
35
|
let powerlines_lib_build_vite = require("powerlines/lib/build/vite");
|
|
8
36
|
let vite = require("vite");
|
|
9
37
|
|
|
@@ -35,13 +63,14 @@ const plugin = (options = {}) => {
|
|
|
35
63
|
config: false,
|
|
36
64
|
entry: this.entry,
|
|
37
65
|
environments: Object.fromEntries(Object.entries(environments).map(([name, env]) => [name, (0, powerlines_lib_build_vite.extractViteConfig)(env)]))
|
|
38
|
-
}, (0, powerlines_lib_build_vite.extractViteConfig)(this), { plugins: [
|
|
66
|
+
}, (0, powerlines_lib_build_vite.extractViteConfig)(this), { plugins: [require_unplugin.createVitePlugin(this)] }));
|
|
39
67
|
}
|
|
40
68
|
};
|
|
41
69
|
};
|
|
42
70
|
var src_default = plugin;
|
|
43
71
|
|
|
44
72
|
//#endregion
|
|
45
|
-
exports.
|
|
73
|
+
exports.__toESM = __toESM;
|
|
74
|
+
exports.createVitePlugin = require_unplugin.createVitePlugin;
|
|
46
75
|
exports.default = src_default;
|
|
47
76
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createVitePlugin } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "./plugin-BnuFunBa.cjs";
|
|
2
|
+
import { t as createVitePlugin } from "./unplugin-Cld_5zlU.cjs";
|
|
3
|
+
import "./index-_wQ5ClJU.cjs";
|
|
4
|
+
import "./index-BR1oNnaF.cjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
10
10
|
*/
|
|
11
11
|
declare const plugin: <TContext extends VitePluginContext = VitePluginContext>(options?: VitePluginOptions) => Plugin<TContext>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, createVitePlugin, plugin as default, plugin };
|
|
13
|
+
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, createVitePlugin, plugin as default, plugin };
|
|
14
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAoCa,cAAA,MAyDZ,EAAA,CAAA,iBAzDuC,iBAyDvC,GAzD2D,iBAyD3D,CAAA,CAAA,OAAA,CAAA,EAxDU,iBAwDV,EAAA,GAvDE,MAuDF,CAvDS,QAuDT,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createVitePlugin } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "./plugin-BU7JKrz_.mjs";
|
|
2
|
+
import { t as createVitePlugin } from "./unplugin-BnIDr7wC.mjs";
|
|
3
|
+
import "./index-vkGVyY9v.mjs";
|
|
4
|
+
import "./index-DEHBdV_z.mjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
10
10
|
*/
|
|
11
11
|
declare const plugin: <TContext extends VitePluginContext = VitePluginContext>(options?: VitePluginOptions) => Plugin<TContext>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, createVitePlugin, plugin as default, plugin };
|
|
13
|
+
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, createVitePlugin, plugin as default, plugin };
|
|
14
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAoCa,cAAA,MAyDZ,EAAA,CAAA,iBAzDuC,iBAyDvC,GAzD2D,iBAyD3D,CAAA,CAAA,OAAA,CAAA,EAxDU,iBAwDV,EAAA,GAvDE,MAuDF,CAvDS,QAuDT,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { createVitePlugin } from "./
|
|
2
|
-
import "./helpers
|
|
1
|
+
import { t as createVitePlugin } from "./unplugin-DhvrD56h.mjs";
|
|
2
|
+
import "./helpers-CmEjzAn_.mjs";
|
|
3
|
+
import "./plugin-jZ9N9Mz-.mjs";
|
|
4
|
+
import "./types-BtDR9wb1.mjs";
|
|
3
5
|
import defu from "defu";
|
|
4
6
|
import { DEFAULT_VITE_CONFIG, extractViteConfig } from "powerlines/lib/build/vite";
|
|
5
7
|
import { build } from "vite";
|
|
@@ -39,4 +41,5 @@ const plugin = (options = {}) => {
|
|
|
39
41
|
var src_default = plugin;
|
|
40
42
|
|
|
41
43
|
//#endregion
|
|
42
|
-
export { createVitePlugin, src_default as default, plugin };
|
|
44
|
+
export { createVitePlugin, src_default as default, plugin };
|
|
45
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +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 defu from \"defu\";\nimport {\n DEFAULT_VITE_CONFIG,\n extractViteConfig\n} from \"powerlines/lib/build/vite\";\nimport { ViteUserConfig } from \"powerlines/types/config\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { build, InlineConfig } from \"vite\";\nimport { createVitePlugin } from \"./helpers/unplugin\";\nimport { UNSAFE_VitePluginContext } from \"./types/internal\";\nimport { VitePluginContext, VitePluginOptions } 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 build: {\n ...DEFAULT_VITE_CONFIG,\n ...options,\n variant: \"vite\"\n },\n singleBuild: true\n } as Partial<ViteUserConfig>;\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 extractViteConfig(env)\n ])\n )\n },\n extractViteConfig(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,OAAO;KACL,GAAG;KACH,GAAG;KACH,SAAS;KACV;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,kBAAkB,IAAI,CACvB,CAAC,CACH;IACF,EACD,kBAAkB,KAAK,EACvB,EACE,SAAS,CAAC,iBAAiB,KAAK,CAAC,EAClC,CACF,CAEkC;;EAEtC;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ViteBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { ConfigEnv } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { ViteResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type VitePluginOptions = Partial<ViteBuildConfig>;
|
|
8
|
+
type VitePluginResolvedConfig = ViteResolvedConfig;
|
|
9
|
+
type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
10
|
+
dev: boolean;
|
|
11
|
+
configEnv: ConfigEnv;
|
|
12
|
+
};
|
|
13
|
+
declare type __ΩVitePluginOptions = any[];
|
|
14
|
+
declare type __ΩVitePluginResolvedConfig = any[];
|
|
15
|
+
declare type __ΩVitePluginContext = any[];
|
|
16
|
+
//#endregion
|
|
17
|
+
export { __ΩVitePluginOptions as a, __ΩVitePluginContext as i, VitePluginOptions as n, __ΩVitePluginResolvedConfig as o, VitePluginResolvedConfig as r, VitePluginContext as t };
|
|
18
|
+
//# sourceMappingURL=plugin-BU7JKrz_.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-BU7JKrz_.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,iBAAA,GAAoB,QAAQ;KAE5B,wBAAA,GAA2B;AAF3B,KAIA,iBAJiB,CAAA,wBAKH,wBALa,GAKc,wBALd,CAAA,GAMnC,aANmC,CAMrB,eANqB,CAAA,GAAA;EAE3B,GAAA,EAAA,OAAA;EAEA,SAAA,EAIC,SAJgB;CACH;AAA2B,oCAAA,GAAA,EAAA;AACnC,2CAAA,GAAA,EAAA;AAAd,oCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ViteBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { ConfigEnv } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { ViteResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type VitePluginOptions = Partial<ViteBuildConfig>;
|
|
8
|
+
type VitePluginResolvedConfig = ViteResolvedConfig;
|
|
9
|
+
type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
10
|
+
dev: boolean;
|
|
11
|
+
configEnv: ConfigEnv;
|
|
12
|
+
};
|
|
13
|
+
declare type __ΩVitePluginOptions = any[];
|
|
14
|
+
declare type __ΩVitePluginResolvedConfig = any[];
|
|
15
|
+
declare type __ΩVitePluginContext = any[];
|
|
16
|
+
//#endregion
|
|
17
|
+
export { __ΩVitePluginOptions as a, __ΩVitePluginContext as i, VitePluginOptions as n, __ΩVitePluginResolvedConfig as o, VitePluginResolvedConfig as r, VitePluginContext as t };
|
|
18
|
+
//# sourceMappingURL=plugin-BnuFunBa.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-BnuFunBa.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,iBAAA,GAAoB,QAAQ;KAE5B,wBAAA,GAA2B;AAF3B,KAIA,iBAJiB,CAAA,wBAKH,wBALa,GAKc,wBALd,CAAA,GAMnC,aANmC,CAMrB,eANqB,CAAA,GAAA;EAE3B,GAAA,EAAA,OAAA;EAEA,SAAA,EAIC,SAJgB;CACH;AAA2B,oCAAA,GAAA,EAAA;AACnC,2CAAA,GAAA,EAAA;AAAd,oCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "../plugin-BnuFunBa.cjs";
|
|
2
|
+
import "../index-BR1oNnaF.cjs";
|
|
2
3
|
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "../plugin-BU7JKrz_.mjs";
|
|
2
|
+
import "../index-DEHBdV_z.mjs";
|
|
2
3
|
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
|
package/dist/types/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VitePluginResolvedConfig } from "
|
|
1
|
+
import { r as VitePluginResolvedConfig } from "../plugin-BnuFunBa.cjs";
|
|
2
2
|
import { UNSAFE_PluginContext } from "powerlines/types/internal";
|
|
3
3
|
|
|
4
4
|
//#region src/types/internal.d.ts
|
|
@@ -11,4 +11,5 @@ import { UNSAFE_PluginContext } from "powerlines/types/internal";
|
|
|
11
11
|
type UNSAFE_VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = UNSAFE_PluginContext<TResolvedConfig>;
|
|
12
12
|
declare type __ΩUNSAFE_VitePluginContext = any[];
|
|
13
13
|
//#endregion
|
|
14
|
-
export { UNSAFE_VitePluginContext, __ΩUNSAFE_VitePluginContext };
|
|
14
|
+
export { UNSAFE_VitePluginContext, __ΩUNSAFE_VitePluginContext };
|
|
15
|
+
//# sourceMappingURL=internal.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.cts","names":[],"sources":["../../src/types/internal.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;;;AAEyB,KAFb,wBAEa,CAAA,wBADC,wBACD,GAD4B,wBAC5B,CAAA,GAArB,oBAAqB,CAAA,eAAA,CAAA;AAArB,2CAAA,GAAA,EAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VitePluginResolvedConfig } from "
|
|
1
|
+
import { r as VitePluginResolvedConfig } from "../plugin-BU7JKrz_.mjs";
|
|
2
2
|
import { UNSAFE_PluginContext } from "powerlines/types/internal";
|
|
3
3
|
|
|
4
4
|
//#region src/types/internal.d.ts
|
|
@@ -11,4 +11,5 @@ import { UNSAFE_PluginContext } from "powerlines/types/internal";
|
|
|
11
11
|
type UNSAFE_VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = UNSAFE_PluginContext<TResolvedConfig>;
|
|
12
12
|
declare type __ΩUNSAFE_VitePluginContext = any[];
|
|
13
13
|
//#endregion
|
|
14
|
-
export { UNSAFE_VitePluginContext, __ΩUNSAFE_VitePluginContext };
|
|
14
|
+
export { UNSAFE_VitePluginContext, __ΩUNSAFE_VitePluginContext };
|
|
15
|
+
//# sourceMappingURL=internal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.mts","names":[],"sources":["../../src/types/internal.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;;;AAEyB,KAFb,wBAEa,CAAA,wBADC,wBACD,GAD4B,wBAC5B,CAAA,GAArB,oBAAqB,CAAA,eAAA,CAAA;AAArB,2CAAA,GAAA,EAAA"}
|
package/dist/types/plugin.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../plugin-pBKbb5K9.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ConfigEnv } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ViteResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type VitePluginOptions = Partial<ViteBuildConfig>;
|
|
8
|
-
type VitePluginResolvedConfig = ViteResolvedConfig;
|
|
9
|
-
type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
10
|
-
dev: boolean;
|
|
11
|
-
configEnv: ConfigEnv;
|
|
12
|
-
};
|
|
13
|
-
declare type __ΩVitePluginOptions = any[];
|
|
14
|
-
declare type __ΩVitePluginResolvedConfig = any[];
|
|
15
|
-
declare type __ΩVitePluginContext = any[];
|
|
16
|
-
//#endregion
|
|
1
|
+
import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "../plugin-BnuFunBa.cjs";
|
|
17
2
|
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ConfigEnv } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ViteResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type VitePluginOptions = Partial<ViteBuildConfig>;
|
|
8
|
-
type VitePluginResolvedConfig = ViteResolvedConfig;
|
|
9
|
-
type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
10
|
-
dev: boolean;
|
|
11
|
-
configEnv: ConfigEnv;
|
|
12
|
-
};
|
|
13
|
-
declare type __ΩVitePluginOptions = any[];
|
|
14
|
-
declare type __ΩVitePluginResolvedConfig = any[];
|
|
15
|
-
declare type __ΩVitePluginContext = any[];
|
|
16
|
-
//#endregion
|
|
1
|
+
import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, t as VitePluginContext } from "../plugin-BU7JKrz_.mjs";
|
|
17
2
|
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_index = require('./index.cjs');
|
|
2
|
+
let powerlines_lib_unplugin = require("powerlines/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_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,8 @@
|
|
|
1
|
+
import { t as VitePluginContext } from "./plugin-BU7JKrz_.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-BnIDr7wC.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-BnIDr7wC.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-BnuFunBa.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-Cld_5zlU.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-Cld_5zlU.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,KAAA,CAAA,cAAA,KAAA,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createUnplugin } from "powerlines/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-DhvrD56h.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-DhvrD56h.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/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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-vite",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.241",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -132,15 +132,15 @@
|
|
|
132
132
|
"keywords": ["vite", "powerlines", "storm-software", "powerlines-plugin"],
|
|
133
133
|
"dependencies": {
|
|
134
134
|
"defu": "^6.1.4",
|
|
135
|
-
"powerlines": "^0.38.
|
|
135
|
+
"powerlines": "^0.38.7",
|
|
136
136
|
"unplugin": "3.0.0-beta.3",
|
|
137
137
|
"vite": "8.0.0-beta.2"
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
140
|
+
"@powerlines/plugin-plugin": "^0.12.191",
|
|
141
141
|
"@types/node": "^24.10.9"
|
|
142
142
|
},
|
|
143
143
|
"publishConfig": { "access": "public" },
|
|
144
144
|
"types": "./dist/index.d.cts",
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "d389997536baee28d116675d7916d9bfa5596dce"
|
|
146
146
|
}
|
|
@@ -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;
|