@powerlines/plugin-vite 0.14.303 → 0.14.304
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.d.cts +3 -3
- package/dist/helpers/index.d.mts +3 -3
- package/dist/helpers/resolve-options.d.cts +1 -1
- package/dist/helpers/resolve-options.d.mts +1 -1
- package/dist/helpers/unplugin.d.cts +2 -2
- package/dist/helpers/unplugin.d.mts +2 -2
- package/dist/index.d.cts +9 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{plugin-CfromG2s.d.cts → plugin-BMA81Whw.d.cts} +2 -2
- package/dist/{plugin-CfromG2s.d.cts.map → plugin-BMA81Whw.d.cts.map} +1 -1
- package/dist/{plugin-DIEwkIcq.d.mts → plugin-CEzL_k_8.d.mts} +2 -2
- package/dist/{plugin-DIEwkIcq.d.mts.map → plugin-CEzL_k_8.d.mts.map} +1 -1
- package/dist/resolve-options-CZfGIJwj.mjs.map +1 -1
- package/dist/{resolve-options-DDD8d7th.d.mts → resolve-options-DSXA4Lt_.d.mts} +2 -2
- package/dist/{resolve-options-Cjw3kuSJ.d.cts.map → resolve-options-DSXA4Lt_.d.mts.map} +1 -1
- package/dist/{resolve-options-Cjw3kuSJ.d.cts → resolve-options-PlPrxfl4.d.cts} +2 -2
- package/dist/{resolve-options-DDD8d7th.d.mts.map → resolve-options-PlPrxfl4.d.cts.map} +1 -1
- package/dist/types/_internal.d.cts +1 -1
- package/dist/types/_internal.d.mts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/{unplugin-DIdD8ka4.d.mts → unplugin-CyIe8bFZ.d.mts} +2 -2
- package/dist/unplugin-CyIe8bFZ.d.mts.map +1 -0
- package/dist/{unplugin-hWdrpmFt.d.cts → unplugin-dYAPcpXk.d.cts} +2 -2
- package/dist/unplugin-dYAPcpXk.d.cts.map +1 -0
- package/package.json +6 -6
- package/dist/unplugin-DIdD8ka4.d.mts.map +0 -1
- package/dist/unplugin-hWdrpmFt.d.cts.map +0 -1
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../build-DVley5x8.cjs";
|
|
2
|
-
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-
|
|
3
|
-
import "../plugin-
|
|
4
|
-
import { t as createVitePlugin } from "../unplugin-
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-PlPrxfl4.cjs";
|
|
3
|
+
import "../plugin-BMA81Whw.cjs";
|
|
4
|
+
import { t as createVitePlugin } from "../unplugin-dYAPcpXk.cjs";
|
|
5
5
|
import "../index-CtCMUyZA.cjs";
|
|
6
6
|
export { DEFAULT_VITE_CONFIG, createVitePlugin, resolveOptions };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../build-CKSRktJj.mjs";
|
|
2
|
-
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-
|
|
3
|
-
import "../plugin-
|
|
4
|
-
import { t as createVitePlugin } from "../unplugin-
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-DSXA4Lt_.mjs";
|
|
3
|
+
import "../plugin-CEzL_k_8.mjs";
|
|
4
|
+
import { t as createVitePlugin } from "../unplugin-CyIe8bFZ.mjs";
|
|
5
5
|
import "../index-C-svZlpj.mjs";
|
|
6
6
|
export { DEFAULT_VITE_CONFIG, createVitePlugin, resolveOptions };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-DVley5x8.cjs";
|
|
2
|
-
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-PlPrxfl4.cjs";
|
|
3
3
|
export { DEFAULT_VITE_CONFIG, resolveOptions };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-CKSRktJj.mjs";
|
|
2
|
-
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "../resolve-options-DSXA4Lt_.mjs";
|
|
3
3
|
export { DEFAULT_VITE_CONFIG, resolveOptions };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
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-
|
|
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-
|
|
4
|
-
import { t as createVitePlugin } from "./unplugin-
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "./resolve-options-PlPrxfl4.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-BMA81Whw.cjs";
|
|
4
|
+
import { t as createVitePlugin } from "./unplugin-dYAPcpXk.cjs";
|
|
5
5
|
import "./index-CtCMUyZA.cjs";
|
|
6
6
|
import "./index-CFG0_wK4.cjs";
|
|
7
|
-
import { Plugin } from "@powerlines/core
|
|
7
|
+
import { Plugin } from "@powerlines/core";
|
|
8
8
|
|
|
9
9
|
//#region src/index.d.ts
|
|
10
|
+
declare module "@powerlines/core" {
|
|
11
|
+
interface BaseConfig {
|
|
12
|
+
vite?: VitePluginOptions;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
10
15
|
/**
|
|
11
16
|
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
12
17
|
*/
|
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":";;;;;;;;;;;WAmCW;;;AAJa;;;AAII,cAOf,MAPe,EAAA,CAAA,iBAOY,iBAPZ,GAOgC,iBAPhC,CAAA,CAAA,OAAA,CAAA,EAQjB,iBARiB,EAAA,GASzB,MATyB,CASlB,QATkB,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
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-
|
|
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-
|
|
4
|
-
import { t as createVitePlugin } from "./unplugin-
|
|
2
|
+
import { n as resolveOptions, t as DEFAULT_VITE_CONFIG } from "./resolve-options-DSXA4Lt_.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-CEzL_k_8.mjs";
|
|
4
|
+
import { t as createVitePlugin } from "./unplugin-CyIe8bFZ.mjs";
|
|
5
5
|
import "./index-C-svZlpj.mjs";
|
|
6
6
|
import "./index-B8OHl-c_.mjs";
|
|
7
|
-
import { Plugin } from "@powerlines/core
|
|
7
|
+
import { Plugin } from "@powerlines/core";
|
|
8
8
|
|
|
9
9
|
//#region src/index.d.ts
|
|
10
|
+
declare module "@powerlines/core" {
|
|
11
|
+
interface BaseConfig {
|
|
12
|
+
vite?: VitePluginOptions;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
10
15
|
/**
|
|
11
16
|
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
12
17
|
*/
|
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":";;;;;;;;;;;WAmCW;;;AAJa;;;AAII,cAOf,MAPe,EAAA,CAAA,iBAOY,iBAPZ,GAOgC,iBAPhC,CAAA,CAAA,OAAA,CAAA,EAQjB,iBARiB,EAAA,GASzB,MATyB,CASlB,QATkB,CAAA"}
|
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
|
|
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 BaseConfig {\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;;AAGH,kBAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ViteOptions } from "./build-DVley5x8.cjs";
|
|
2
|
-
import { ConfigEnv, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { ConfigEnv, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type VitePluginOptions = Partial<ViteOptions>;
|
|
@@ -19,4 +19,4 @@ declare type __ΩVitePluginResolvedConfig = any[];
|
|
|
19
19
|
declare type __ΩVitePluginContext = any[];
|
|
20
20
|
//#endregion
|
|
21
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-
|
|
22
|
+
//# sourceMappingURL=plugin-BMA81Whw.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-BMA81Whw.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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ViteOptions } from "./build-CKSRktJj.mjs";
|
|
2
|
-
import { ConfigEnv, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { ConfigEnv, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type VitePluginOptions = Partial<ViteOptions>;
|
|
@@ -19,4 +19,4 @@ declare type __ΩVitePluginResolvedConfig = any[];
|
|
|
19
19
|
declare type __ΩVitePluginContext = any[];
|
|
20
20
|
//#endregion
|
|
21
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-
|
|
22
|
+
//# sourceMappingURL=plugin-CEzL_k_8.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-CEzL_k_8.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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-CZfGIJwj.mjs","names":["DEFAULT_VITE_CONFIG: Partial<ViteOptions>","resolveOptions","resolveEsbuildOptions","resolveRolldownOptions","resolveRollupOptions"],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context } from \"@powerlines/core
|
|
1
|
+
{"version":3,"file":"resolve-options-CZfGIJwj.mjs","names":["DEFAULT_VITE_CONFIG: Partial<ViteOptions>","resolveOptions","resolveEsbuildOptions","resolveRolldownOptions","resolveRollupOptions"],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context } from \"@powerlines/core\";\nimport { resolveOptions as resolveEsbuildOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { resolveOptions as resolveRolldownOptions } from \"@powerlines/plugin-rolldown/helpers/resolve-options\";\nimport { resolveOptions as resolveRollupOptions } from \"@powerlines/plugin-rollup/helpers/resolve-options\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport { ESBuildOptions } from \"vite\";\nimport { VitePluginResolvedConfig } from \"../types\";\nimport { ViteOptions } from \"../types/build\";\n\nexport const DEFAULT_VITE_CONFIG: Partial<ViteOptions> = {\n resolve: {\n extensions: [\".mjs\", \".js\", \".mts\", \".ts\", \".jsx\", \".tsx\", \".json\"]\n },\n json: {\n stringify: true\n },\n logLevel: \"silent\",\n clearScreen: true\n};\n\n/**\n * Resolves the options for [vite](https://vitejs.dev/).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(context: Context): ViteOptions {\n return defu(\n {\n resolve: {\n alias: Object.entries(context.alias).reduce(\n (ret, [id, path]) => {\n if (!ret.find(e => e.find === id)) {\n ret.push({\n find: id,\n replacement: path\n });\n } else {\n context.warn(\n `Duplicate alias entry for '${id}' detected. The first entry will be used.`\n );\n }\n\n return ret;\n },\n [] as { find: string; replacement: string }[]\n ),\n dedupe: context.config.resolve.dedupe,\n mainFields: context.config.resolve.mainFields,\n conditions: context.config.resolve.conditions,\n extensions: context.config.resolve.extensions\n }\n },\n (context.config as VitePluginResolvedConfig).vite\n ? defu(\n (context.config as VitePluginResolvedConfig).vite,\n {\n optimizeDeps:\n (context.config as VitePluginResolvedConfig).vite?.optimizeDeps ??\n {}\n },\n {\n optimizeDeps: {\n extensions: context.config.resolve.extensions\n }\n }\n )\n : {},\n {\n define: context.config.define,\n rootDir: context.fs.existsSync(joinPaths(context.config.root, \"src\"))\n ? joinPaths(context.config.root, \"src\")\n : context.config.root,\n platform: context.config.platform,\n mode:\n context.config.mode === \"development\" ? \"development\" : \"production\",\n cacheDir: joinPaths(context.cachePath, \"vite\"),\n build: {\n minify: context.config.mode !== \"development\",\n metafile: context.config.mode === \"development\",\n sourcemap: context.config.mode === \"development\",\n outDir: context.config.output.buildPath,\n tsconfig: context.tsconfig.tsconfigFilePath,\n tsconfigRaw: context.tsconfig.tsconfigJson\n },\n esbuild: resolveEsbuildOptions(context) as ESBuildOptions,\n optimizeDeps: {\n rolldownOptions: resolveRolldownOptions(context),\n rollupOptions: resolveRollupOptions(context),\n esbuildOptions: resolveEsbuildOptions(context)\n },\n logLevel: context.config.logLevel ?? undefined,\n envDir: context.config.root\n } as ViteOptions,\n DEFAULT_VITE_CONFIG\n ) as ViteOptions;\n}\n"],"mappings":";;;;;;;AA4BA,MAAaA,sBAA4C;CACvD,SAAS,EACP,YAAY;EAAC;EAAQ;EAAO;EAAQ;EAAO;EAAQ;EAAQ;EAAQ,EACpE;CACD,MAAM,EACJ,WAAW,MACZ;CACD,UAAU;CACV,aAAa;CACd;;;;;;;AAQD,SAAgBC,iBAAe,SAA+B;AAC5D,QAAO,KACL,EACE,SAAS;EACP,OAAO,OAAO,QAAQ,QAAQ,MAAM,CAAC,QAClC,KAAK,CAAC,IAAI,UAAU;AACnB,OAAI,CAAC,IAAI,MAAK,MAAK,EAAE,SAAS,GAAG,CAC/B,KAAI,KAAK;IACP,MAAM;IACN,aAAa;IACd,CAAC;OAEF,SAAQ,KACN,8BAA8B,GAAG,2CAClC;AAGH,UAAO;KAET,EAAE,CACH;EACD,QAAQ,QAAQ,OAAO,QAAQ;EAC/B,YAAY,QAAQ,OAAO,QAAQ;EACnC,YAAY,QAAQ,OAAO,QAAQ;EACnC,YAAY,QAAQ,OAAO,QAAQ;EACpC,EACF,EACA,QAAQ,OAAoC,OACzC,KACG,QAAQ,OAAoC,MAC7C,EACE,cACG,QAAQ,OAAoC,MAAM,gBACnD,EAAE,EACL,EACD,EACE,cAAc,EACZ,YAAY,QAAQ,OAAO,QAAQ,YACpC,EACF,CACF,GACD,EAAE,EACN;EACE,QAAQ,QAAQ,OAAO;EACvB,SAAS,QAAQ,GAAG,WAAW,UAAU,QAAQ,OAAO,MAAM,MAAM,CAAC,GACjE,UAAU,QAAQ,OAAO,MAAM,MAAM,GACrC,QAAQ,OAAO;EACnB,UAAU,QAAQ,OAAO;EACzB,MACE,QAAQ,OAAO,SAAS,gBAAgB,gBAAgB;EAC1D,UAAU,UAAU,QAAQ,WAAW,OAAO;EAC9C,OAAO;GACL,QAAQ,QAAQ,OAAO,SAAS;GAChC,UAAU,QAAQ,OAAO,SAAS;GAClC,WAAW,QAAQ,OAAO,SAAS;GACnC,QAAQ,QAAQ,OAAO,OAAO;GAC9B,UAAU,QAAQ,SAAS;GAC3B,aAAa,QAAQ,SAAS;GAC/B;EACD,SAASC,eAAsB,QAAQ;EACvC,cAAc;GACZ,iBAAiBC,iBAAuB,QAAQ;GAChD,eAAeC,iBAAqB,QAAQ;GAC5C,gBAAgBF,eAAsB,QAAQ;GAC/C;EACD,UAAU,QAAQ,OAAO,YAAY;EACrC,QAAQ,QAAQ,OAAO;EACxB,EACD,oBACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ViteOptions } from "./build-CKSRktJj.mjs";
|
|
2
|
-
import { Context } from "@powerlines/core
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/resolve-options.d.ts
|
|
5
5
|
declare const DEFAULT_VITE_CONFIG: Partial<ViteOptions>;
|
|
@@ -12,4 +12,4 @@ declare const DEFAULT_VITE_CONFIG: Partial<ViteOptions>;
|
|
|
12
12
|
declare function resolveOptions(context: Context): ViteOptions;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { resolveOptions as n, DEFAULT_VITE_CONFIG as t };
|
|
15
|
-
//# sourceMappingURL=resolve-options-
|
|
15
|
+
//# sourceMappingURL=resolve-options-DSXA4Lt_.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-
|
|
1
|
+
{"version":3,"file":"resolve-options-DSXA4Lt_.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,qBAAqB,QAAQ;;AAA1C;AAiBA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ViteOptions } from "./build-DVley5x8.cjs";
|
|
2
|
-
import { Context } from "@powerlines/core
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/resolve-options.d.ts
|
|
5
5
|
declare const DEFAULT_VITE_CONFIG: Partial<ViteOptions>;
|
|
@@ -12,4 +12,4 @@ declare const DEFAULT_VITE_CONFIG: Partial<ViteOptions>;
|
|
|
12
12
|
declare function resolveOptions(context: Context): ViteOptions;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { resolveOptions as n, DEFAULT_VITE_CONFIG as t };
|
|
15
|
-
//# sourceMappingURL=resolve-options-
|
|
15
|
+
//# sourceMappingURL=resolve-options-PlPrxfl4.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-
|
|
1
|
+
{"version":3,"file":"resolve-options-PlPrxfl4.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,qBAAqB,QAAQ;;AAA1C;AAiBA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../build-DVley5x8.cjs";
|
|
2
|
-
import { r as VitePluginResolvedConfig } from "../plugin-
|
|
2
|
+
import { r as VitePluginResolvedConfig } from "../plugin-BMA81Whw.cjs";
|
|
3
3
|
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
4
4
|
|
|
5
5
|
//#region src/types/_internal.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../build-CKSRktJj.mjs";
|
|
2
|
-
import { r as VitePluginResolvedConfig } from "../plugin-
|
|
2
|
+
import { r as VitePluginResolvedConfig } from "../plugin-CEzL_k_8.mjs";
|
|
3
3
|
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
4
4
|
|
|
5
5
|
//#region src/types/_internal.d.ts
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as __ΩViteOptions, t as ViteOptions } from "../build-DVley5x8.cjs";
|
|
2
|
-
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-BMA81Whw.cjs";
|
|
3
3
|
import "../index-CFG0_wK4.cjs";
|
|
4
4
|
export { ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as __ΩViteOptions, t as ViteOptions } from "../build-CKSRktJj.mjs";
|
|
2
|
-
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-CEzL_k_8.mjs";
|
|
3
3
|
import "../index-B8OHl-c_.mjs";
|
|
4
4
|
export { ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-DVley5x8.cjs";
|
|
2
|
-
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-BMA81Whw.cjs";
|
|
3
3
|
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-CKSRktJj.mjs";
|
|
2
|
-
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-CEzL_k_8.mjs";
|
|
3
3
|
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as VitePluginContext } from "./plugin-
|
|
1
|
+
import { t as VitePluginContext } from "./plugin-CEzL_k_8.mjs";
|
|
2
2
|
import * as vite0 from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.d.ts
|
|
5
5
|
declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { createVitePlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-
|
|
8
|
+
//# sourceMappingURL=unplugin-CyIe8bFZ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-CyIe8bFZ.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,KAAA,CAAA,cAAA,KAAA,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as VitePluginContext } from "./plugin-
|
|
1
|
+
import { t as VitePluginContext } from "./plugin-BMA81Whw.cjs";
|
|
2
2
|
import * as vite0 from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.d.ts
|
|
5
5
|
declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { createVitePlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-
|
|
8
|
+
//# sourceMappingURL=unplugin-dYAPcpXk.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-dYAPcpXk.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,KAAA,CAAA,cAAA,KAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-vite",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.304",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"keywords": ["vite", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
"peerDependencies": { "vite": ">=8.0.0" },
|
|
80
80
|
"peerDependenciesMeta": { "vite": { "optional": false } },
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@powerlines/core": "^0.0
|
|
83
|
-
"@powerlines/plugin-rolldown": "^0.7.
|
|
84
|
-
"@powerlines/plugin-rollup": "^0.7.
|
|
85
|
-
"@powerlines/plugin-esbuild": "^0.13.
|
|
82
|
+
"@powerlines/core": "^0.1.0",
|
|
83
|
+
"@powerlines/plugin-rolldown": "^0.7.312",
|
|
84
|
+
"@powerlines/plugin-rollup": "^0.7.312",
|
|
85
|
+
"@powerlines/plugin-esbuild": "^0.13.311",
|
|
86
86
|
"defu": "^6.1.4",
|
|
87
87
|
"unplugin": "3.0.0-beta.3"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": { "@types/node": "^25.3.3", "vite": "8.0.0-beta.2" },
|
|
90
90
|
"publishConfig": { "access": "public" },
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "e63eb5a0ecd0e5ee3e030388ad1c534b3ecb2136"
|
|
92
92
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-DIdD8ka4.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,KAAA,CAAA,cAAA,KAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-hWdrpmFt.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,KAAA,CAAA,cAAA,KAAA,CAAA"}
|