@powerlines/plugin-vite 0.14.47 → 0.14.48
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 +1 -1
- package/dist/helpers/index.d.cts +4 -23
- package/dist/helpers/index.d.mts +4 -0
- package/dist/helpers/index.mjs +1 -0
- package/dist/helpers/unplugin.cjs +1 -7
- package/dist/helpers/unplugin.d.cts +3 -26
- package/dist/helpers/unplugin.d.mts +3 -0
- package/dist/helpers/unplugin.mjs +1 -0
- package/dist/helpers-CRPRhztf.mjs +1 -0
- package/dist/index-9iG2qHLe.d.mts +1 -0
- package/dist/index-D4ELpJXS.d.cts +1 -0
- package/dist/index-D6CnpA_r.d.cts +1 -0
- package/dist/index-DL0uimUT.d.mts +1 -0
- package/dist/index.cjs +14 -7
- package/dist/index.d.cts +9 -26
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-BMO8UUD7.d.cts +1659 -0
- package/dist/plugin-BMO8UUD7.d.cts.map +1 -0
- package/dist/plugin-BjiGfRHE.mjs +1 -0
- package/dist/plugin-DROa0wFk.d.mts +1660 -0
- package/dist/plugin-DROa0wFk.d.mts.map +1 -0
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -22
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.d.cts +2 -22
- package/dist/types/plugin.d.mts +2 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/types-n6NgD0QK.mjs +1 -0
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/unplugin-B5sOy3Cu.d.cts +8 -0
- package/dist/unplugin-B5sOy3Cu.d.cts.map +1 -0
- package/dist/unplugin-DtGAGQN9.mjs +7 -0
- package/dist/unplugin-DtGAGQN9.mjs.map +1 -0
- package/dist/unplugin-I2GGsl9g.cjs +44 -0
- package/dist/unplugin-TkF87dZT.d.mts +8 -0
- package/dist/unplugin-TkF87dZT.d.mts.map +1 -0
- package/package.json +53 -35
- package/dist/chunk-FBBMZ4NC.cjs +0 -7
- package/dist/chunk-UCUR73HG.js +0 -7
- package/dist/helpers/index.d.ts +0 -23
- package/dist/helpers/index.js +0 -1
- package/dist/helpers/unplugin.d.ts +0 -26
- package/dist/helpers/unplugin.js +0 -7
- package/dist/index-DN-Ha6HR.d.cts +0 -1570
- package/dist/index-DN-Ha6HR.d.ts +0 -1570
- package/dist/index.d.ts +0 -31
- package/dist/index.js +0 -7
- package/dist/types/index.d.ts +0 -22
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.ts +0 -22
- /package/dist/{types/plugin.js → helpers-LF26RHol.cjs} +0 -0
package/dist/helpers/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require(`../unplugin-I2GGsl9g.cjs`);require(`../helpers-LF26RHol.cjs`),exports.createVitePlugin=e.t;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import '@stryke/http/fetch';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/package-json';
|
|
8
|
-
import 'jiti';
|
|
9
|
-
import 'magic-string';
|
|
10
|
-
import 'oxc-parser';
|
|
11
|
-
import 'semver';
|
|
12
|
-
import 'ts-morph';
|
|
13
|
-
import 'undici';
|
|
14
|
-
import 'unplugin';
|
|
15
|
-
import '@storm-software/build-tools/types';
|
|
16
|
-
import '@storm-software/config-tools/types';
|
|
17
|
-
import '@storm-software/config/types';
|
|
18
|
-
import '@stryke/types/configuration';
|
|
19
|
-
import '@stryke/types/file';
|
|
20
|
-
import '@stryke/fs/resolve';
|
|
21
|
-
import '@stryke/types/array';
|
|
22
|
-
import '@stryke/types/tsconfig';
|
|
23
|
-
import 'typescript';
|
|
1
|
+
import "../plugin-BMO8UUD7.cjs";
|
|
2
|
+
import { t as createVitePlugin } from "../unplugin-B5sOy3Cu.cjs";
|
|
3
|
+
import "../index-D6CnpA_r.cjs";
|
|
4
|
+
export { createVitePlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"../unplugin-DtGAGQN9.mjs";import"../helpers-CRPRhztf.mjs";export{e as createVitePlugin};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
* ⚡ Built by Storm Software
|
|
4
|
-
*
|
|
5
|
-
*****************************************/
|
|
6
|
-
|
|
7
|
-
function m(e){return unplugin.createVitePlugin(unplugin$1.createUnplugin(e))({})}chunkFBBMZ4NC_cjs.a(m,"createVitePlugin");exports.createVitePlugin=m;
|
|
1
|
+
const e=require(`../unplugin-I2GGsl9g.cjs`);exports.createVitePlugin=e.t;
|
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import '@stryke/http/fetch';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/package-json';
|
|
7
|
-
import 'jiti';
|
|
8
|
-
import 'magic-string';
|
|
9
|
-
import 'oxc-parser';
|
|
10
|
-
import 'semver';
|
|
11
|
-
import 'ts-morph';
|
|
12
|
-
import 'undici';
|
|
13
|
-
import 'unplugin';
|
|
14
|
-
import '@storm-software/build-tools/types';
|
|
15
|
-
import '@storm-software/config-tools/types';
|
|
16
|
-
import '@storm-software/config/types';
|
|
17
|
-
import '@stryke/types/configuration';
|
|
18
|
-
import '@stryke/types/file';
|
|
19
|
-
import '@stryke/fs/resolve';
|
|
20
|
-
import '@stryke/types/array';
|
|
21
|
-
import '@stryke/types/tsconfig';
|
|
22
|
-
import 'typescript';
|
|
23
|
-
|
|
24
|
-
declare function createVitePlugin(context: VitePluginContext): vite.Plugin<any> | vite.Plugin<any>[];
|
|
25
|
-
|
|
26
|
-
export { createVitePlugin };
|
|
1
|
+
import "../plugin-BMO8UUD7.cjs";
|
|
2
|
+
import { t as createVitePlugin } from "../unplugin-B5sOy3Cu.cjs";
|
|
3
|
+
export { createVitePlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"../unplugin-DtGAGQN9.mjs";export{e as createVitePlugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -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,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./unplugin-I2GGsl9g.cjs`);require(`./helpers-LF26RHol.cjs`),require(`./plugin-pBKbb5K9.cjs`),require(`./types-o3zWarRp.cjs`);let t=require(`@storm-software/config-tools/types`),n=require(`@stryke/fs/package-fns`),r=require(`@stryke/path/join-paths`),i=require(`defu`);i=e.n(i);let a=require(`@stryke/helpers/omit`),o=require(`@stryke/path/replace`),s=require(`@stryke/string-format/camel-case`),c=require(`@stryke/type-checks/is-string`);const l={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function u(e){let t=e.config.build.override.inject??e.config.build.inject;return t&&Object.keys(t).length>0&&e.fs.writeSync((0,r.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`),Object.entries(t).map(([e,t])=>{if(t)if(Array.isArray(t)){if((0,s.camelCase)(e)!==e){if(t.length===1)return`
|
|
2
|
+
import ${(0,s.camelCase)(e)} from "${t[0]}";
|
|
3
|
+
export { ${(0,s.camelCase)(e)} as "${e}" }`;if(t.length>1)return`
|
|
4
|
+
import ${t[1]===`*`?`* as ${(0,s.camelCase)(e)}`:`{ ${t[1]} as ${(0,s.camelCase)(e)} }`} from "${t[0]}";
|
|
5
|
+
export { ${(0,s.camelCase)(e)} as "${e}" }`}else if(t.length===1)return`
|
|
6
|
+
import ${e} from "${t[0]}";
|
|
7
|
+
export { ${e} };`;else if(t.length>1)return`
|
|
8
|
+
import ${t[1]===`*`?`* as ${e}`:`{ ${t[1]} as ${e} }`} from "${t[0]}";
|
|
9
|
+
export { ${e} };`}else if((0,s.camelCase)(e)!==e)return`
|
|
10
|
+
import ${(0,s.camelCase)(e)} from "${t[0]}";
|
|
11
|
+
export { ${(0,s.camelCase)(e)} as "${e}" }`;else return`
|
|
12
|
+
import ${e} from "${t}";
|
|
13
|
+
export { ${e} };`;return``}).join(`
|
|
14
|
+
`)),(0,i.default)({alias:e.builtins.reduce((t,n)=>{if(!t[n]){let r=e.fs.ids[n];r&&(t[n]=r)}return t},e.config.build.alias?Array.isArray(e.config.build.alias)?e.config.build.alias.reduce((e,t)=>(e[t.find.toString()]||(e[t.find.toString()]=t.replacement),e),{}):e.config.build.alias:{}),inject:t&&Object.keys(t).length>0?[(0,r.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?(0,a.omit)(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?(0,a.omit)(e.config.build,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`,`variant`,`override`]):{},{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,resolveExtensions:e.config.build.extensions,packages:e.config.build.skipNodeModulesBundle?`external`:e.config.build.variant===`esbuild`?e.config.build.packages:void 0,format:Array.isArray(e.config.output.format)?e.config.output.format[0]:e.config.output.format,platform:e.config.build.platform,treeShaking:!!e.config.build?.treeshake||e.config.build?.treeShaking,outdir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,tsconfigRaw:e.tsconfig.tsconfigJson,minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`},l)}const d={resolve:{extensions:[`.mjs`,`.js`,`.mts`,`.ts`,`.jsx`,`.tsx`,`.json`]},json:{stringify:!0},logLevel:`silent`,clearScreen:!0};function f(e){return(0,i.default)({resolve:{alias:e.builtins.reduce((t,n)=>{if(!t.find(e=>e.find===n)){let r=e.fs.ids[n];r&&t.push({find:n,replacement:r})}return t},e.config.build.alias?Array.isArray(e.config.build.alias)?e.config.build.alias:Object.entries(e.config.build.alias).reduce((e,[t,n])=>(e.find(e=>e.find===t)||e.push({find:t,replacement:n}),e),[]):[]),dedupe:e.config.build.dedupe,mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,extensions:e.config.build.extensions}},e.config.build.variant===`vite`?e.config.build.override:{},e.config.build.variant===`vite`?(0,a.omit)(e.config.build,[`override`,`variant`]):{},{define:e.config.build.define,rootDir:e.config.sourceRoot,platform:e.config.build.platform,mode:e.config.mode===`development`?`development`:`production`,cacheDir:(0,r.joinPaths)(e.cachePath,`vite`),build:{minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`,outDir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,tsconfigRaw:e.tsconfig.tsconfigJson},esbuild:u(e),logLevel:e.config.logLevel??void 0,envDir:e.config.projectRoot},d)}const p=(a={})=>({name:`vite`,config(){return this.log(t.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `vite` build plugin."),{output:{format:[`cjs`,`esm`]},build:{...d,...a,variant:`vite`}}},async build(){this.log(t.LogLevelLabel.TRACE,`Building the Powerlines plugin.`);let o=(0,i.default)({config:!1,entry:this.entry},f(this),{plugins:[e.t(this)]}),s=`vite`;if(a.rolldown&&(0,n.isPackageExists)(`rolldown-vite`,{paths:[(0,r.joinPaths)(this.workspaceConfig.workspaceRoot,this.config.projectRoot),this.workspaceConfig.workspaceRoot]})&&(s=`rolldown-vite`),!(0,n.isPackageExists)(s,{paths:[(0,r.joinPaths)(this.workspaceConfig.workspaceRoot,this.config.projectRoot),this.workspaceConfig.workspaceRoot]}))throw Error(`Failed to find the "${s}" package required for the Powerlines "vite" plugin${a.rolldown?" with the `rolldown` option enabled":``}. Please run "npm install ${s} -D" to install it.`);let c=await this.resolver.import(s);if(!c)throw Error(`Failed to load the "${s}" module - this package is required when using the Powerlines "vite" plugin${a.rolldown?" with the `rolldown` option enabled":``}. Please ensure it is installed correctly.`);await c.build(o)}});var m=p;exports.createVitePlugin=e.t,exports.default=m,exports.plugin=p;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '@stryke/types/base';
|
|
8
|
-
import '@stryke/types/package-json';
|
|
9
|
-
import 'jiti';
|
|
10
|
-
import 'magic-string';
|
|
11
|
-
import 'oxc-parser';
|
|
12
|
-
import 'semver';
|
|
13
|
-
import 'ts-morph';
|
|
14
|
-
import 'undici';
|
|
15
|
-
import 'unplugin';
|
|
16
|
-
import '@storm-software/build-tools/types';
|
|
17
|
-
import '@storm-software/config-tools/types';
|
|
18
|
-
import '@storm-software/config/types';
|
|
19
|
-
import '@stryke/types/configuration';
|
|
20
|
-
import '@stryke/types/file';
|
|
21
|
-
import '@stryke/fs/resolve';
|
|
22
|
-
import '@stryke/types/array';
|
|
23
|
-
import '@stryke/types/tsconfig';
|
|
24
|
-
import 'typescript';
|
|
1
|
+
import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, s as Plugin, t as VitePluginContext } from "./plugin-BMO8UUD7.cjs";
|
|
2
|
+
import { t as createVitePlugin } from "./unplugin-B5sOy3Cu.cjs";
|
|
3
|
+
import "./index-D6CnpA_r.cjs";
|
|
4
|
+
import "./index-D4ELpJXS.cjs";
|
|
5
|
+
|
|
6
|
+
//#region src/index.d.ts
|
|
25
7
|
|
|
26
8
|
/**
|
|
27
9
|
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
28
10
|
*/
|
|
29
11
|
declare const plugin: <TContext extends VitePluginContext = VitePluginContext>(options?: VitePluginOptions) => Plugin<TContext>;
|
|
30
|
-
|
|
31
|
-
export { VitePluginContext, VitePluginOptions, plugin as default, plugin };
|
|
12
|
+
//#endregion
|
|
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":";;;;;;;;;AAsCA;AAAwC,cAA3B,MAA2B,EAAA,CAAA,iBAAA,iBAAA,GAAoB,iBAApB,CAAA,CAAA,OAAA,CAAA,EAC7B,iBAD6B,EAAA,GAErC,MAFqC,CAE9B,QAF8B,CAAA"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { a as __ΩVitePluginOptions, i as __ΩVitePluginContext, n as VitePluginOptions, o as __ΩVitePluginResolvedConfig, r as VitePluginResolvedConfig, s as Plugin, t as VitePluginContext } from "./plugin-DROa0wFk.mjs";
|
|
2
|
+
import { t as createVitePlugin } from "./unplugin-TkF87dZT.mjs";
|
|
3
|
+
import "./index-DL0uimUT.mjs";
|
|
4
|
+
import "./index-9iG2qHLe.mjs";
|
|
5
|
+
|
|
6
|
+
//#region src/index.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
10
|
+
*/
|
|
11
|
+
declare const plugin: <TContext extends VitePluginContext = VitePluginContext>(options?: VitePluginOptions) => Plugin<TContext>;
|
|
12
|
+
//#endregion
|
|
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":";;;;;;;;;AAsCA;AAAwC,cAA3B,MAA2B,EAAA,CAAA,iBAAA,iBAAA,GAAoB,iBAApB,CAAA,CAAA,OAAA,CAAA,EAC7B,iBAD6B,EAAA,GAErC,MAFqC,CAE9B,QAF8B,CAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{t as e}from"./unplugin-DtGAGQN9.mjs";import"./helpers-CRPRhztf.mjs";import"./plugin-BjiGfRHE.mjs";import"./types-n6NgD0QK.mjs";import{LogLevelLabel as t}from"@storm-software/config-tools/types";import{isPackageExists as n}from"@stryke/fs/package-fns";import{joinPaths as r}from"@stryke/path/join-paths";import i from"defu";import{omit as a}from"@stryke/helpers/omit";import{replaceExtension as o,replacePath as s}from"@stryke/path/replace";import{camelCase as c}from"@stryke/string-format/camel-case";import{isString as l}from"@stryke/type-checks/is-string";const u={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function d(e){let t=e.config.build.override.inject??e.config.build.inject;return t&&Object.keys(t).length>0&&e.fs.writeSync(r(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`),Object.entries(t).map(([e,t])=>{if(t)if(Array.isArray(t)){if(c(e)!==e){if(t.length===1)return`
|
|
2
|
+
import ${c(e)} from "${t[0]}";
|
|
3
|
+
export { ${c(e)} as "${e}" }`;if(t.length>1)return`
|
|
4
|
+
import ${t[1]===`*`?`* as ${c(e)}`:`{ ${t[1]} as ${c(e)} }`} from "${t[0]}";
|
|
5
|
+
export { ${c(e)} as "${e}" }`}else if(t.length===1)return`
|
|
6
|
+
import ${e} from "${t[0]}";
|
|
7
|
+
export { ${e} };`;else if(t.length>1)return`
|
|
8
|
+
import ${t[1]===`*`?`* as ${e}`:`{ ${t[1]} as ${e} }`} from "${t[0]}";
|
|
9
|
+
export { ${e} };`}else if(c(e)!==e)return`
|
|
10
|
+
import ${c(e)} from "${t[0]}";
|
|
11
|
+
export { ${c(e)} as "${e}" }`;else return`
|
|
12
|
+
import ${e} from "${t}";
|
|
13
|
+
export { ${e} };`;return``}).join(`
|
|
14
|
+
`)),i({alias:e.builtins.reduce((t,n)=>{if(!t[n]){let r=e.fs.ids[n];r&&(t[n]=r)}return t},e.config.build.alias?Array.isArray(e.config.build.alias)?e.config.build.alias.reduce((e,t)=>(e[t.find.toString()]||(e[t.find.toString()]=t.replacement),e),{}):e.config.build.alias:{}),inject:t&&Object.keys(t).length>0?[r(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?a(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?a(e.config.build,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`,`variant`,`override`]):{},{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,resolveExtensions:e.config.build.extensions,packages:e.config.build.skipNodeModulesBundle?`external`:e.config.build.variant===`esbuild`?e.config.build.packages:void 0,format:Array.isArray(e.config.output.format)?e.config.output.format[0]:e.config.output.format,platform:e.config.build.platform,treeShaking:!!e.config.build?.treeshake||e.config.build?.treeShaking,outdir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,tsconfigRaw:e.tsconfig.tsconfigJson,minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`},u)}const f={resolve:{extensions:[`.mjs`,`.js`,`.mts`,`.ts`,`.jsx`,`.tsx`,`.json`]},json:{stringify:!0},logLevel:`silent`,clearScreen:!0};function p(e){return i({resolve:{alias:e.builtins.reduce((t,n)=>{if(!t.find(e=>e.find===n)){let r=e.fs.ids[n];r&&t.push({find:n,replacement:r})}return t},e.config.build.alias?Array.isArray(e.config.build.alias)?e.config.build.alias:Object.entries(e.config.build.alias).reduce((e,[t,n])=>(e.find(e=>e.find===t)||e.push({find:t,replacement:n}),e),[]):[]),dedupe:e.config.build.dedupe,mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,extensions:e.config.build.extensions}},e.config.build.variant===`vite`?e.config.build.override:{},e.config.build.variant===`vite`?a(e.config.build,[`override`,`variant`]):{},{define:e.config.build.define,rootDir:e.config.sourceRoot,platform:e.config.build.platform,mode:e.config.mode===`development`?`development`:`production`,cacheDir:r(e.cachePath,`vite`),build:{minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`,outDir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,tsconfigRaw:e.tsconfig.tsconfigJson},esbuild:d(e),logLevel:e.config.logLevel??void 0,envDir:e.config.projectRoot},f)}const m=(a={})=>({name:`vite`,config(){return this.log(t.TRACE,"Providing default configuration for the Powerlines `vite` build plugin."),{output:{format:[`cjs`,`esm`]},build:{...f,...a,variant:`vite`}}},async build(){this.log(t.TRACE,`Building the Powerlines plugin.`);let o=i({config:!1,entry:this.entry},p(this),{plugins:[e(this)]}),s=`vite`;if(a.rolldown&&n(`rolldown-vite`,{paths:[r(this.workspaceConfig.workspaceRoot,this.config.projectRoot),this.workspaceConfig.workspaceRoot]})&&(s=`rolldown-vite`),!n(s,{paths:[r(this.workspaceConfig.workspaceRoot,this.config.projectRoot),this.workspaceConfig.workspaceRoot]}))throw Error(`Failed to find the "${s}" package required for the Powerlines "vite" plugin${a.rolldown?" with the `rolldown` option enabled":``}. Please run "npm install ${s} -D" to install it.`);let c=await this.resolver.import(s);if(!c)throw Error(`Failed to load the "${s}" module - this package is required when using the Powerlines "vite" plugin${a.rolldown?" with the `rolldown` option enabled":``}. Please ensure it is installed correctly.`);await c.build(o)}});var h=m;export{e as createVitePlugin,h as default,m as plugin};
|
|
15
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["DEFAULT_ESBUILD_CONFIG: Partial<ESBuildResolvedBuildConfig>","defu","DEFAULT_VITE_CONFIG: Partial<ViteResolvedBuildConfig>","defu","defu"],"sources":["../../powerlines/src/lib/build/esbuild.ts","../../powerlines/src/lib/build/vite.ts","../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 { omit } from \"@stryke/helpers/omit\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport defu from \"defu\";\nimport { BuildOptions, Format, LogLevel, Platform } from \"esbuild\";\nimport {\n ESBuildBuildConfig,\n ESBuildResolvedBuildConfig,\n TsupBuildConfig\n} from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport type { ResolvedEntryTypeDefinition } from \"../../types/resolved\";\nimport { resolveEntryInputFile, resolveEntryOutput } from \"../entry\";\n\n// const resolverPlugin = (\n// context: Context,\n// options: Pick<\n// BuildResolvedConfig,\n// \"external\" | \"noExternal\" | \"skipNodeModulesBundle\"\n// > = {}\n// ): Plugin => {\n// return {\n// name: \"powerlines:resolver\",\n// setup(build) {\n// const skipNodeModulesBundle =\n// options.skipNodeModulesBundle ??\n// context.config.build.skipNodeModulesBundle;\n// const external = options.external ?? context.config.build.external ?? [];\n// const noExternal =\n// options.noExternal ?? context.config.build.noExternal ?? [];\n// const resolvePatterns = skipNodeModulesBundle\n// ? tsconfigPathsToRegExp(context.tsconfig.options.paths ?? [])\n// : [];\n\n// const handle = async (args: OnResolveArgs) => {\n// const result = await handleResolveId(\n// context,\n// {\n// id: args.path,\n// importer: args.importer,\n// options: {\n// isEntry: false\n// }\n// },\n// {\n// skipNodeModulesBundle,\n// external,\n// noExternal,\n// resolvePatterns\n// }\n// );\n// if (!result) {\n// return;\n// }\n\n// return {\n// path: result?.id,\n// external: result?.external\n// };\n// };\n\n// build.onResolve({ filter: /.*/ }, handle);\n// build.onResolve({ filter: /^storm:/ }, handle);\n// }\n// };\n// };\n\nexport const DEFAULT_ESBUILD_CONFIG: Partial<ESBuildResolvedBuildConfig> = {\n target: \"esnext\",\n platform: \"neutral\" as Platform,\n format: \"esm\" as Format,\n write: true,\n minify: true,\n sourcemap: false,\n bundle: true,\n treeShaking: true,\n keepNames: true,\n splitting: true,\n logLevel: \"silent\" as LogLevel\n};\n\n/**\n * Resolves the entry options for esbuild.\n *\n * @param context - The build context.\n * @param entryPoints - The entry points to resolve.\n * @returns The resolved entry options.\n */\nexport function resolveESBuildEntry(\n context: Context,\n entryPoints: ResolvedEntryTypeDefinition[] | string[] = []\n): ESBuildResolvedBuildConfig[\"entryPoints\"] {\n return entryPoints.reduce(\n (ret, entry) => {\n if (isString(entry)) {\n ret[\n replaceExtension(\n replacePath(\n entry,\n context.config.sourceRoot || context.config.projectRoot\n )\n )\n ] = replacePath(\n entry,\n context.config.sourceRoot || context.config.projectRoot\n );\n } else {\n ret[entry.output || resolveEntryOutput(context, entry.input || entry)] =\n resolveEntryInputFile(context, entry.input || entry);\n }\n\n return ret;\n },\n {} as Record<string, string>\n );\n}\n\n/**\n * Resolves the esbuild options.\n *\n * @param context - The build context.\n * @returns The resolved esbuild options.\n */\nexport function extractESBuildConfig(context: Context): BuildOptions {\n const inject =\n context.config.build.override.inject ?? context.config.build.inject;\n if (inject && Object.keys(inject).length > 0) {\n context.fs.writeSync(\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n context.artifactsPath,\n \"inject-shim.js\"\n ),\n Object.entries(inject)\n .map(([key, value]) => {\n if (value) {\n if (Array.isArray(value)) {\n if (camelCase(key) !== key) {\n if (value.length === 1) {\n return `\nimport ${camelCase(key)} from \"${value[0]}\";\nexport { ${camelCase(key)} as \"${key}\" }`;\n } else if (value.length > 1) {\n return `\nimport ${value[1] === \"*\" ? `* as ${camelCase(key)}` : `{ ${value[1]} as ${camelCase(key)} }`} from \"${value[0]}\";\nexport { ${camelCase(key)} as \"${key}\" }`;\n }\n } else if (value.length === 1) {\n return `\nimport ${key} from \"${value[0]}\";\nexport { ${key} };`;\n } else if (value.length > 1) {\n return `\nimport ${value[1] === \"*\" ? `* as ${key}` : `{ ${value[1]} as ${key} }`} from \"${value[0]}\";\nexport { ${key} };`;\n }\n } else if (camelCase(key) !== key) {\n return `\nimport ${camelCase(key)} from \"${value[0]}\";\nexport { ${camelCase(key)} as \"${key}\" }`;\n } else {\n return `\nimport ${key} from \"${value}\";\nexport { ${key} };`;\n }\n }\n\n return \"\";\n })\n .join(\"\\n\")\n );\n }\n\n return defu(\n {\n alias: context.builtins.reduce(\n (ret, id) => {\n if (!ret[id]) {\n const path = context.fs.ids[id];\n if (path) {\n ret[id] = path;\n }\n }\n\n return ret;\n },\n context.config.build.alias\n ? Array.isArray(context.config.build.alias)\n ? context.config.build.alias.reduce(\n (ret, alias) => {\n if (!ret[alias.find.toString()]) {\n ret[alias.find.toString()] = alias.replacement;\n }\n\n return ret;\n },\n {} as Record<string, string>\n )\n : context.config.build.alias\n : {}\n ),\n inject:\n inject && Object.keys(inject).length > 0\n ? [\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot,\n context.artifactsPath,\n \"inject-shim.js\"\n )\n ]\n : undefined\n },\n context.config.build.variant === \"esbuild\"\n ? (omit(context.config.build.override, [\n \"alias\",\n \"inject\",\n \"external\",\n \"noExternal\",\n \"skipNodeModulesBundle\",\n \"extensions\"\n ]) as BuildOptions)\n : {},\n context.config.build.variant === \"esbuild\"\n ? (omit(context.config.build, [\n \"alias\",\n \"inject\",\n \"external\",\n \"noExternal\",\n \"skipNodeModulesBundle\",\n \"extensions\",\n \"variant\",\n \"override\"\n ]) as BuildOptions)\n : {},\n {\n mainFields: context.config.build.mainFields,\n conditions: context.config.build.conditions,\n define: context.config.build.define,\n resolveExtensions: context.config.build.extensions,\n packages: context.config.build.skipNodeModulesBundle\n ? \"external\"\n : context.config.build.variant === \"esbuild\"\n ? (context.config.build as ESBuildBuildConfig).packages\n : undefined,\n format: (Array.isArray(context.config.output.format)\n ? context.config.output.format[0]\n : context.config.output.format) as Format,\n platform: context.config.build.platform,\n treeShaking:\n Boolean((context.config.build as TsupBuildConfig)?.treeshake) ||\n (context.config.build as ESBuildBuildConfig)?.treeShaking,\n outdir: context.config.output.buildPath,\n tsconfig: context.tsconfig.tsconfigFilePath,\n tsconfigRaw: context.tsconfig.tsconfigJson,\n minify: context.config.mode !== \"development\",\n metafile: context.config.mode === \"development\",\n sourcemap: context.config.mode === \"development\"\n },\n DEFAULT_ESBUILD_CONFIG\n ) as BuildOptions;\n}\n","/* -------------------------------------------------------------------\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 { omit } from \"@stryke/helpers/omit\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport { ESBuildOptions } from \"vite\";\nimport { ViteResolvedBuildConfig } from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { extractESBuildConfig } from \"./esbuild\";\n\nexport const DEFAULT_VITE_CONFIG: Partial<ViteResolvedBuildConfig> = {\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 extractViteConfig(context: Context): ViteResolvedBuildConfig {\n return defu(\n {\n resolve: {\n alias: context.builtins.reduce(\n (ret, id) => {\n if (!ret.find(e => e.find === id)) {\n const path = context.fs.ids[id];\n if (path) {\n ret.push({ find: id, replacement: path });\n }\n }\n\n return ret;\n },\n (context.config.build.alias\n ? Array.isArray(context.config.build.alias)\n ? context.config.build.alias\n : Object.entries(context.config.build.alias).reduce(\n (ret, [id, path]) => {\n if (!ret.find(e => e.find === id)) {\n ret.push({ find: id, replacement: path });\n }\n\n return ret;\n },\n [] as { find: string; replacement: string }[]\n )\n : []) as { find: string; replacement: string }[]\n ),\n dedupe: context.config.build.dedupe,\n mainFields: context.config.build.mainFields,\n conditions: context.config.build.conditions,\n extensions: context.config.build.extensions\n }\n },\n context.config.build.variant === \"vite\"\n ? context.config.build.override\n : {},\n context.config.build.variant === \"vite\"\n ? omit(context.config.build, [\"override\", \"variant\"])\n : {},\n {\n define: context.config.build.define,\n rootDir: context.config.sourceRoot,\n platform: context.config.build.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: extractESBuildConfig(context) as ESBuildOptions,\n logLevel: context.config.logLevel ?? undefined,\n envDir: context.config.projectRoot\n },\n DEFAULT_VITE_CONFIG\n ) as ViteResolvedBuildConfig;\n}\n","/* -------------------------------------------------------------------\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 { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { isPackageExists } from \"@stryke/fs/package-fns\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\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 { InlineConfig } from \"rolldown-vite\";\nimport { createVitePlugin } from \"./helpers/unplugin\";\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.log(\n LogLevelLabel.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 } as Partial<ViteUserConfig>;\n },\n async build() {\n this.log(LogLevelLabel.TRACE, `Building the Powerlines plugin.`);\n\n const config = defu(\n {\n config: false,\n entry: this.entry\n },\n extractViteConfig(this),\n {\n plugins: [createVitePlugin(this)]\n }\n );\n\n let importPath = \"vite\";\n if (\n options.rolldown &&\n isPackageExists(\"rolldown-vite\", {\n paths: [\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot\n ),\n this.workspaceConfig.workspaceRoot\n ]\n })\n ) {\n importPath = \"rolldown-vite\";\n }\n\n if (\n !isPackageExists(importPath, {\n paths: [\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot\n ),\n this.workspaceConfig.workspaceRoot\n ]\n })\n ) {\n throw new Error(\n `Failed to find the \"${importPath}\" package required for the Powerlines \"vite\" plugin${\n options.rolldown ? \" with the `rolldown` option enabled\" : \"\"\n }. Please run \"npm install ${importPath} -D\" to install it.`\n );\n }\n\n const vite = await this.resolver.import<{\n build: (opts: InlineConfig) => Promise<void>;\n }>(importPath);\n if (!vite) {\n throw new Error(\n `Failed to load the \"${importPath}\" module - this package is required when using the Powerlines \"vite\" plugin${\n options.rolldown ? \" with the `rolldown` option enabled\" : \"\"\n }. Please ensure it is installed correctly.`\n );\n }\n\n await vite.build(config as InlineConfig);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"qjBAuFA,MAAaA,EAA8D,CACzE,OAAQ,SACR,SAAU,UACV,OAAQ,MACR,MAAO,GACP,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,YAAa,GACb,UAAW,GACX,UAAW,GACX,SAAU,SACX,CA4CD,SAAgB,EAAqB,EAAgC,CACnE,IAAM,EACJ,EAAQ,O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