@powerlines/plugin-rolldown 0.7.59 → 0.7.61

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/README.md CHANGED
@@ -252,7 +252,11 @@ specification. Contributions of any kind welcome!
252
252
  <br />
253
253
 
254
254
  <div align="center">
255
- <img src="https://public.storm-cdn.com/brand-banner.png" width="100%" alt="Storm Software" />
255
+ <picture>
256
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp">
257
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light-optimized.webp">
258
+ <img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp" width="100%" alt="Storm Software" />
259
+ </picture>
256
260
  </div>
257
261
  <br />
258
262
 
package/dist/index.d.cts CHANGED
@@ -10,5 +10,4 @@ import "./index-D4ELpJXS.cjs";
10
10
  */
11
11
  declare const plugin: <TContext extends RolldownPluginContext = RolldownPluginContext>(options?: RolldownPluginOptions) => Plugin<TContext>;
12
12
  //#endregion
13
- export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, createRolldownPlugin, plugin as default, plugin };
14
- //# sourceMappingURL=index.d.cts.map
13
+ export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, createRolldownPlugin, plugin as default, plugin };
package/dist/index.d.mts CHANGED
@@ -10,5 +10,4 @@ import "./index-9iG2qHLe.mjs";
10
10
  */
11
11
  declare const plugin: <TContext extends RolldownPluginContext = RolldownPluginContext>(options?: RolldownPluginOptions) => Plugin<TContext>;
12
12
  //#endregion
13
- export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, createRolldownPlugin, plugin as default, plugin };
14
- //# sourceMappingURL=index.d.mts.map
13
+ export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, createRolldownPlugin, plugin as default, plugin };
package/dist/index.mjs CHANGED
@@ -1,2 +1 @@
1
- import{t as e}from"./unplugin-Rgj8lLxv.mjs";import"./helpers-CRPRhztf.mjs";import"./plugin-BjiGfRHE.mjs";import"./types-n6NgD0QK.mjs";import{toArray as t}from"@stryke/convert/to-array";import n from"defu";import{getBabelInputPlugin as r}from"@rollup/plugin-babel";import i from"@rollup/plugin-inject";import a from"@rollup/plugin-node-resolve";import o from"@rollup/plugin-replace";import{omit as s}from"@stryke/helpers/omit";import{joinPaths as c}from"@stryke/path/join-paths";import{isFunction as l}from"@stryke/type-checks/is-function";import{isString as u}from"@stryke/type-checks/is-string";import{globSync as d}from"node:fs";import{viteAliasPlugin as f}from"rolldown/experimental";import p from"rollup-plugin-typescript2";import"@rollup/plugin-alias";import{rolldown as m}from"rolldown";const h={name:`powerlines:dts-bundle`,async generateBundle(e,t){for(let[,e]of Object.entries(t)){if(e.type===`asset`||!e.isEntry||e.facadeModuleId==null)continue;let t=e.fileName.replace(/(?:\.cjs|\.mjs|\.esm\.js|\.cjs\.js|\.mjs\.js|\.js)$/,`.d.ts`),n=JSON.stringify(`./${e.facadeModuleId.replace(/\.[cm]?[jt]sx?$/,``)}`);this.emitFile({type:`asset`,fileName:t,source:e.exports.includes(`default`)?`export * from ${n};\nexport { default } from ${n};\n`:`export * from ${n};\n`})}}};function g(e){return n({input:d(t(e.config.entry).map(e=>u(e)?e:e.file)).flat(),external:(n,r,i)=>{let a=e.config.build.variant===`rollup`&&e.config.build.override.external?l(e.config.build.override.external)?e.config.build.override.external:n=>t(e.config.build.override.external).includes(n):e.config.build.variant===`vite`&&e.config.build.override?.build?.rollupOptions?.external?l(e.config.build.override?.build?.rollupOptions?.external)?e.config.build.override?.build?.rollupOptions?.external:n=>t(e.config.build?.build?.rollupOptions?.external).includes(n):e.config.build.variant===`rollup`&&e.config.build.external?l(e.config.build.external)?e.config.build.external:n=>t(e.config.build.external).includes(n):e.config.build.variant===`vite`&&e.config.build.build?.rollupOptions?.external?l(e.config.build.build?.rollupOptions?.external)?e.config.build.build?.rollupOptions?.external:n=>t(e.config.build?.build?.rollupOptions?.external).includes(n):void 0;return l(a)&&a(n,r,i)||e.config.build.external&&t(e.config.build.external).includes(n)?!0:e.config.build.noExternal&&t(e.config.build.noExternal).includes(n)?!1:e.builtins.includes(n)?e.config.projectType!==`application`:!e.config.build.skipNodeModulesBundle},plugins:[p({check:!1,tsconfig:e.tsconfig.tsconfigFilePath}),e.config.build.define&&Object.keys(e.config.build.define).length>0&&o({sourceMap:e.config.mode===`development`,preventAssignment:!0,...e.config.build.define??{}}),e.config.build.inject&&Object.keys(e.config.build.inject).length>0&&i({sourceMap:e.config.mode===`development`,...e.config.build.inject}),f({entries: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),[]):[])}),r(n(e.config.transform.babel,{caller:{name:`powerlines`,supportsStaticESM:!0},cwd:e.config.projectRoot,babelrc:!1,extensions:[`.js`,`.jsx`,`.ts`,`.tsx`],babelHelpers:`bundled`,skipPreflightCheck:!0,exclude:/node_modules/})),a({moduleDirectories:[`node_modules`],preferBuiltins:!0}),h]},e.config.build.variant===`rolldown`||e.config.build.variant===`rollup`?e.config.build.override:{},e.config.build.variant===`vite`?e.config.build.override.build?.rollupOptions:{},e.config.build.variant===`rolldown`||e.config.build.variant===`rollup`?s(e.config.build,[`override`,`variant`]):{},e.config.build.variant===`vite`?e.config.build.build:{},{experimental:{viteMode:e.config.build.variant===`vite`},resolve:{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,extensions:e.config.build.extensions},platform:e.config.build.platform,tsconfig:e.tsconfig.tsconfigFilePath,cache:e.config.skipCache?!1:c(e.cachePath,`rolldown`),logLevel:e.config.logLevel,onLog:e.log,jsx:`automatic`,keepNames:!0,treeshake:!0,minify:e.config.mode===`production`,output:[{dir:e.config.output.buildPath,format:`es`,preserveModules:!0,sourcemap:e.config.mode===`development`},{dir:e.config.output.buildPath,format:`cjs`,preserveModules:!0,sourcemap:e.config.mode===`development`}]})}const _=(r={})=>({name:`rolldown`,config(){return{output:{format:[`cjs`,`esm`]},build:{...r,variant:`rolldown`}}},async build(){let r=await m(n({plugins:[e(this)]},g(this)));await Promise.all(t(this.config.output.format).map(async e=>r.write({format:e})))}});var v=_;export{e as createRolldownPlugin,v as default,_ as plugin};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{t as e}from"./unplugin-Rgj8lLxv.mjs";import"./helpers-CRPRhztf.mjs";import"./plugin-BjiGfRHE.mjs";import"./types-n6NgD0QK.mjs";import{toArray as t}from"@stryke/convert/to-array";import n from"defu";import{getBabelInputPlugin as r}from"@rollup/plugin-babel";import i from"@rollup/plugin-inject";import a from"@rollup/plugin-node-resolve";import o from"@rollup/plugin-replace";import{omit as s}from"@stryke/helpers/omit";import{joinPaths as c}from"@stryke/path/join-paths";import{isFunction as l}from"@stryke/type-checks/is-function";import{isString as u}from"@stryke/type-checks/is-string";import{globSync as d}from"node:fs";import{viteAliasPlugin as f}from"rolldown/experimental";import p from"rollup-plugin-typescript2";import"@rollup/plugin-alias";import{rolldown as m}from"rolldown";const h={name:`powerlines:dts-bundle`,async generateBundle(e,t){for(let[,e]of Object.entries(t)){if(e.type===`asset`||!e.isEntry||e.facadeModuleId==null)continue;let t=e.fileName.replace(/(?:\.cjs|\.mjs|\.esm\.js|\.cjs\.js|\.mjs\.js|\.js)$/,`.d.ts`),n=JSON.stringify(`./${e.facadeModuleId.replace(/\.[cm]?[jt]sx?$/,``)}`);this.emitFile({type:`asset`,fileName:t,source:e.exports.includes(`default`)?`export * from ${n};\nexport { default } from ${n};\n`:`export * from ${n};\n`})}}};function g(e){return n({input:d(t(e.config.entry).map(e=>u(e)?e:e.file)).flat(),external:(n,r,i)=>{let a=e.config.build.variant===`rollup`&&e.config.build.override.external?l(e.config.build.override.external)?e.config.build.override.external:n=>t(e.config.build.override.external).includes(n):e.config.build.variant===`vite`&&e.config.build.override?.build?.rollupOptions?.external?l(e.config.build.override?.build?.rollupOptions?.external)?e.config.build.override?.build?.rollupOptions?.external:n=>t(e.config.build?.build?.rollupOptions?.external).includes(n):e.config.build.variant===`rollup`&&e.config.build.external?l(e.config.build.external)?e.config.build.external:n=>t(e.config.build.external).includes(n):e.config.build.variant===`vite`&&e.config.build.build?.rollupOptions?.external?l(e.config.build.build?.rollupOptions?.external)?e.config.build.build?.rollupOptions?.external:n=>t(e.config.build?.build?.rollupOptions?.external).includes(n):void 0;return l(a)&&a(n,r,i)||e.config.build.external&&t(e.config.build.external).includes(n)?!0:e.config.build.noExternal&&t(e.config.build.noExternal).includes(n)?!1:e.builtins.includes(n)?e.config.projectType!==`application`:!e.config.build.skipNodeModulesBundle},plugins:[p({check:!1,tsconfig:e.tsconfig.tsconfigFilePath}),e.config.build.define&&Object.keys(e.config.build.define).length>0&&o({sourceMap:e.config.mode===`development`,preventAssignment:!0,...e.config.build.define??{}}),e.config.build.inject&&Object.keys(e.config.build.inject).length>0&&i({sourceMap:e.config.mode===`development`,...e.config.build.inject}),f({entries: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),[]):[])}),r(n(e.config.transform.babel,{caller:{name:`powerlines`,supportsStaticESM:!0},cwd:e.config.projectRoot,babelrc:!1,extensions:[`.js`,`.jsx`,`.ts`,`.tsx`],babelHelpers:`bundled`,skipPreflightCheck:!0,exclude:/node_modules/})),a({moduleDirectories:[`node_modules`],preferBuiltins:!0}),h]},e.config.build.variant===`rolldown`||e.config.build.variant===`rollup`?e.config.build.override:{},e.config.build.variant===`vite`?e.config.build.override.build?.rollupOptions:{},e.config.build.variant===`rolldown`||e.config.build.variant===`rollup`?s(e.config.build,[`override`,`variant`]):{},e.config.build.variant===`vite`?e.config.build.build:{},{experimental:{viteMode:e.config.build.variant===`vite`},resolve:{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,extensions:e.config.build.extensions},platform:e.config.build.platform,tsconfig:e.tsconfig.tsconfigFilePath,cache:e.config.skipCache?!1:c(e.cachePath,`rolldown`),logLevel:e.config.logLevel,onLog:e.log,jsx:`automatic`,keepNames:!0,treeshake:!0,minify:e.config.mode===`production`,output:[{dir:e.config.output.buildPath,format:`es`,preserveModules:!0,sourcemap:e.config.mode===`development`},{dir:e.config.output.buildPath,format:`cjs`,preserveModules:!0,sourcemap:e.config.mode===`development`}]})}const _=(r={})=>({name:`rolldown`,config(){return{output:{format:[`cjs`,`esm`]},build:{...r,variant:`rolldown`}}},async build(){let r=await m(n({plugins:[e(this)]},g(this)));await Promise.all(t(this.config.output.format).map(async e=>r.write({format:e})))}});var v=_;export{e as createRolldownPlugin,v as default,_ as plugin};
@@ -1649,5 +1649,4 @@ declare type __ΩRolldownPluginOptions = any[];
1649
1649
  declare type __ΩRolldownPluginResolvedConfig = any[];
1650
1650
  declare type __ΩRolldownPluginContext = any[];
1651
1651
  //#endregion
1652
- export { __ΩRolldownPluginOptions as a, __ΩRolldownPluginContext as i, RolldownPluginOptions as n, __ΩRolldownPluginResolvedConfig as o, RolldownPluginResolvedConfig as r, Plugin as s, RolldownPluginContext as t };
1653
- //# sourceMappingURL=plugin-D_CjvjtG.d.cts.map
1652
+ export { __ΩRolldownPluginOptions as a, __ΩRolldownPluginContext as i, RolldownPluginOptions as n, __ΩRolldownPluginResolvedConfig as o, RolldownPluginResolvedConfig as r, Plugin as s, RolldownPluginContext as t };
@@ -1652,5 +1652,4 @@ declare type __ΩRolldownPluginOptions = any[];
1652
1652
  declare type __ΩRolldownPluginResolvedConfig = any[];
1653
1653
  declare type __ΩRolldownPluginContext = any[];
1654
1654
  //#endregion
1655
- export { __ΩRolldownPluginOptions as a, __ΩRolldownPluginContext as i, RolldownPluginOptions as n, __ΩRolldownPluginResolvedConfig as o, RolldownPluginResolvedConfig as r, Plugin as s, RolldownPluginContext as t };
1656
- //# sourceMappingURL=plugin-ORHxJfRx.d.mts.map
1655
+ export { __ΩRolldownPluginOptions as a, __ΩRolldownPluginContext as i, RolldownPluginOptions as n, __ΩRolldownPluginResolvedConfig as o, RolldownPluginResolvedConfig as r, Plugin as s, RolldownPluginContext as t };
@@ -4,5 +4,4 @@ import * as esbuild0 from "esbuild";
4
4
  //#region src/helpers/unplugin.d.ts
5
5
  declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
6
6
  //#endregion
7
- export { createRolldownPlugin as t };
8
- //# sourceMappingURL=unplugin-6pmf0k5J.d.cts.map
7
+ export { createRolldownPlugin as t };
@@ -4,5 +4,4 @@ import * as esbuild0 from "esbuild";
4
4
  //#region src/helpers/unplugin.d.ts
5
5
  declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
6
6
  //#endregion
7
- export { createRolldownPlugin as t };
8
- //# sourceMappingURL=unplugin-BOTgL3CM.d.mts.map
7
+ export { createRolldownPlugin as t };
@@ -3,5 +3,4 @@ ${t.config.build.polyfill.map(e=>`import "${e}";`).join(`
3
3
  `)}
4
4
 
5
5
  export * from "${s(i)?i:i.id}";
6
- `,e.file),e.file}return i}async function i(e){let n=await t.$$internal.callHook(`load`,{sequential:!0,result:`first`,order:`pre`},e);return n||(n=await t.$$internal.callHook(`load`,{sequential:!0,result:`first`,order:`normal`},e),n)||(n=await t.load(e),n)?n:t.$$internal.callHook(`load`,{sequential:!0,result:`first`,order:`post`},e)}async function a(e,n){let r=e;for(let e of t.$$internal.environment.selectHooks(`transform`)){let i=await e.handle.apply(Z(t,this),[X(r),n]);i&&(r=i)}return r}async function o(){return e(l.DEBUG,`Powerlines build plugin finishing...`),t.$$internal.callHook(`buildEnd`,{sequential:!0})}async function c(){return e(l.DEBUG,`Finalizing Powerlines project output...`),t.$$internal.callHook(`writeBundle`,{sequential:!0})}return{name:`powerlines`,api:t.$$internal.api,resolveId:{filter:{id:{include:[/.*/]}},handler:r},load:{filter:{id:{include:[/.*/]}},handler:i},transform:a,buildStart:n,buildEnd:o,writeBundle:c,vite:{sharedDuringBuild:!0}}}catch(t){throw e(l.FATAL,t?.message),t}}}function $(e){return u(Q(e))({})}export{$ as t};
7
- //# sourceMappingURL=unplugin-Rgj8lLxv.mjs.map
6
+ `,e.file),e.file}return i}async function i(e){let n=await t.$$internal.callHook(`load`,{sequential:!0,result:`first`,order:`pre`},e);return n||(n=await t.$$internal.callHook(`load`,{sequential:!0,result:`first`,order:`normal`},e),n)||(n=await t.load(e),n)?n:t.$$internal.callHook(`load`,{sequential:!0,result:`first`,order:`post`},e)}async function a(e,n){let r=e;for(let e of t.$$internal.environment.selectHooks(`transform`)){let i=await e.handle.apply(Z(t,this),[X(r),n]);i&&(r=i)}return r}async function o(){return e(l.DEBUG,`Powerlines build plugin finishing...`),t.$$internal.callHook(`buildEnd`,{sequential:!0})}async function c(){return e(l.DEBUG,`Finalizing Powerlines project output...`),t.$$internal.callHook(`writeBundle`,{sequential:!0})}return{name:`powerlines`,api:t.$$internal.api,resolveId:{filter:{id:{include:[/.*/]}},handler:r},load:{filter:{id:{include:[/.*/]}},handler:i},transform:a,buildStart:n,buildEnd:o,writeBundle:c,vite:{sharedDuringBuild:!0}}}catch(t){throw e(l.FATAL,t?.message),t}}}function $(e){return u(Q(e))({})}export{$ as t};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-rolldown",
3
- "version": "0.7.59",
3
+ "version": "0.7.61",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -152,15 +152,15 @@
152
152
  "@stryke/types": "^0.10.13",
153
153
  "defu": "^6.1.4",
154
154
  "jiti": "^2.6.1",
155
- "powerlines": "^0.30.1",
155
+ "powerlines": "^0.30.3",
156
156
  "rolldown": "1.0.0-beta.53",
157
157
  "unplugin": "3.0.0-beta.3"
158
158
  },
159
159
  "devDependencies": {
160
- "@powerlines/nx": "^0.10.50",
161
- "@powerlines/plugin-plugin": "^0.12.2",
160
+ "@powerlines/nx": "^0.10.52",
161
+ "@powerlines/plugin-plugin": "^0.12.4",
162
162
  "@types/node": "^24.10.1"
163
163
  },
164
164
  "publishConfig": { "access": "public" },
165
- "gitHead": "499105ba7cabc6fa139bbc6829746a15c5c59357"
165
+ "gitHead": "8f31b1531e973824d7c3d58abe08c1f1f75e36e5"
166
166
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAiCA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,qBAAA,GAAwB,qBAAxB,CAAA,CAAA,OAAA,CAAA,EAER,qBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAiCA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,qBAAA,GAAwB,qBAAxB,CAAA,CAAA,OAAA,CAAA,EAER,qBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["dtsBundlePlugin: Plugin","defu","alias","build","defu"],"sources":["../../powerlines/src/lib/build/rollup.ts","../../powerlines/src/lib/build/rolldown.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 alias from \"@rollup/plugin-alias\";\nimport {\n getBabelInputPlugin,\n RollupBabelInputPluginOptions\n} from \"@rollup/plugin-babel\";\nimport inject from \"@rollup/plugin-inject\";\nimport resolve from \"@rollup/plugin-node-resolve\";\nimport replace from \"@rollup/plugin-replace\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport defu from \"defu\";\nimport { globSync } from \"node:fs\";\nimport { Plugin } from \"rollup\";\nimport typescriptPlugin from \"rollup-plugin-typescript2\";\nimport {\n RollupResolvedBuildConfig,\n ViteBuildConfig,\n ViteResolvedBuildConfig\n} from \"../../types/build\";\nimport { Context } from \"../../types/context\";\n\n/**\n * A Rollup plugin to bundle TypeScript declaration files (.d.ts) alongside the JavaScript output files.\n *\n * @remarks\n * This plugin generates .d.ts files for each entry point in the bundle, ensuring that type definitions are available for consumers of the library.\n */\nexport const dtsBundlePlugin: Plugin = {\n name: \"powerlines:dts-bundle\",\n async generateBundle(_opts, bundle) {\n for (const [, file] of Object.entries(bundle)) {\n if (\n file.type === \"asset\" ||\n !file.isEntry ||\n file.facadeModuleId == null\n ) {\n continue;\n }\n\n // Replace various JavaScript file extensions (e.g., .js, .cjs, .mjs, .cjs.js, .mjs.js) with .d.ts for generating type definition file names.\n const dtsFileName = file.fileName.replace(\n /(?:\\.cjs|\\.mjs|\\.esm\\.js|\\.cjs\\.js|\\.mjs\\.js|\\.js)$/,\n \".d.ts\"\n );\n\n const relativeSourceDtsName = JSON.stringify(\n `./${file.facadeModuleId.replace(/\\.[cm]?[jt]sx?$/, \"\")}`\n );\n\n this.emitFile({\n type: \"asset\",\n fileName: dtsFileName,\n source: file.exports.includes(\"default\")\n ? `export * from ${relativeSourceDtsName};\\nexport { default } from ${relativeSourceDtsName};\\n`\n : `export * from ${relativeSourceDtsName};\\n`\n });\n }\n }\n};\n\n/**\n * Resolves the options for [rollup](https://rollupjs.org).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function extractRollupConfig(\n context: Context\n): RollupResolvedBuildConfig {\n const result = defu(\n {\n input: globSync(\n toArray(context.config.entry).map(entry =>\n isString(entry) ? entry : entry.file\n )\n ).flat(),\n external: (\n source: string,\n importer: string | undefined,\n isResolved: boolean\n ) => {\n const externalFn =\n context.config.build.variant === \"rollup\" &&\n context.config.build.override.external\n ? isFunction(context.config.build.override.external)\n ? context.config.build.override.external\n : (id: string) =>\n toArray(\n (\n context.config.build\n .override as Partial<RollupResolvedBuildConfig>\n ).external\n ).includes(id)\n : context.config.build.variant === \"vite\" &&\n (context.config.build.override as ViteResolvedBuildConfig).build\n ?.rollupOptions?.external\n ? isFunction(\n (context.config.build.override as ViteResolvedBuildConfig)\n .build?.rollupOptions?.external\n )\n ? (context.config.build.override as ViteResolvedBuildConfig)\n .build?.rollupOptions?.external\n : (id: string) =>\n toArray(\n (context.config.build as ViteResolvedBuildConfig)?.build\n ?.rollupOptions?.external\n ).includes(id)\n : context.config.build.variant === \"rollup\" &&\n context.config.build.external\n ? isFunction(context.config.build.external)\n ? context.config.build.external\n : (id: string) =>\n toArray(\n (context.config.build as RollupResolvedBuildConfig)\n .external\n ).includes(id)\n : context.config.build.variant === \"vite\" &&\n (context.config.build as ViteBuildConfig).build\n ?.rollupOptions?.external\n ? isFunction(\n (context.config.build as ViteBuildConfig).build\n ?.rollupOptions?.external\n )\n ? (context.config.build as ViteBuildConfig).build\n ?.rollupOptions?.external\n : (id: string) =>\n toArray(\n (context.config.build as ViteBuildConfig)?.build\n ?.rollupOptions?.external\n ).includes(id)\n : undefined;\n if (\n isFunction(externalFn) &&\n externalFn(source, importer, isResolved)\n ) {\n return true;\n }\n\n if (\n context.config.build.external &&\n toArray(context.config.build.external).includes(source)\n ) {\n return true;\n }\n\n if (\n context.config.build.noExternal &&\n toArray(context.config.build.noExternal).includes(source)\n ) {\n return false;\n }\n\n if (context.builtins.includes(source)) {\n return context.config.projectType !== \"application\";\n }\n\n return !context.config.build.skipNodeModulesBundle;\n },\n plugins: [\n typescriptPlugin({\n check: false,\n tsconfig: context.tsconfig.tsconfigFilePath\n }),\n context.config.build.define &&\n Object.keys(context.config.build.define).length > 0 &&\n replace({\n sourceMap: context.config.mode === \"development\",\n preventAssignment: true,\n ...(context.config.build.define ?? {})\n }),\n context.config.build.inject &&\n Object.keys(context.config.build.inject).length > 0 &&\n inject({\n sourceMap: context.config.mode === \"development\",\n ...context.config.build.inject\n }),\n alias({\n entries: 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 }),\n getBabelInputPlugin(\n defu(context.config.transform.babel, {\n caller: {\n name: \"powerlines\",\n supportsStaticESM: true\n },\n cwd: context.config.projectRoot,\n babelrc: false,\n extensions: [\".js\", \".jsx\", \".ts\", \".tsx\"],\n babelHelpers: \"bundled\",\n skipPreflightCheck: true,\n exclude: /node_modules/\n }) as RollupBabelInputPluginOptions\n ),\n resolve({\n moduleDirectories: [\"node_modules\"],\n preferBuiltins: true\n }),\n dtsBundlePlugin\n ].filter(Boolean) as Plugin[]\n },\n context.config.build.variant === \"rollup\"\n ? context.config.build.override\n : {},\n context.config.build.variant === \"vite\"\n ? (context.config.build.override as ViteBuildConfig).build?.rollupOptions\n : {},\n context.config.build.variant === \"rollup\"\n ? omit(context.config.build, [\"override\", \"variant\"])\n : {},\n context.config.build.variant === \"vite\"\n ? (context.config.build as ViteBuildConfig).build?.rollupOptions\n : {},\n {\n cache: !context.config.skipCache\n ? joinPaths(context.cachePath, \"rollup\")\n : false,\n logLevel: context.config.logLevel,\n output: [\n {\n dir: context.config.output.buildPath,\n format: \"es\",\n entryFileNames: \"[name].js\",\n preserveModules: true,\n sourcemap: context.config.mode === \"development\"\n },\n {\n dir: context.config.output.buildPath,\n format: \"cjs\",\n entryFileNames: \"[name].cjs\",\n preserveModules: true,\n sourcemap: context.config.mode === \"development\"\n }\n ]\n }\n ) as RollupResolvedBuildConfig;\n\n return result;\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 {\n getBabelInputPlugin,\n RollupBabelInputPluginOptions\n} from \"@rollup/plugin-babel\";\nimport inject from \"@rollup/plugin-inject\";\nimport resolve from \"@rollup/plugin-node-resolve\";\nimport replace from \"@rollup/plugin-replace\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport defu from \"defu\";\nimport { globSync } from \"node:fs\";\nimport { viteAliasPlugin as alias } from \"rolldown/experimental\";\nimport typescriptPlugin from \"rollup-plugin-typescript2\";\nimport {\n RolldownResolvedBuildConfig,\n ViteResolvedBuildConfig\n} from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { dtsBundlePlugin } from \"./rollup\";\n\n/**\n * Resolves the options for [rolldown](https://rolldown.rs).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function extractRolldownConfig(\n context: Context\n): RolldownResolvedBuildConfig {\n return defu<RolldownResolvedBuildConfig, any>(\n {\n input: globSync(\n toArray(context.config.entry).map(entry =>\n isString(entry) ? entry : entry.file\n )\n ).flat(),\n external: (\n source: string,\n importer: string | undefined,\n isResolved: boolean\n ) => {\n const externalFn =\n context.config.build.variant === \"rollup\" &&\n context.config.build.override.external\n ? isFunction(context.config.build.override.external)\n ? context.config.build.override.external\n : (id: string) =>\n toArray(\n (\n context.config.build\n .override as Partial<RolldownResolvedBuildConfig>\n ).external\n ).includes(id)\n : context.config.build.variant === \"vite\" &&\n (context.config.build.override as ViteResolvedBuildConfig)\n ?.build?.rollupOptions?.external\n ? isFunction(\n (context.config.build.override as ViteResolvedBuildConfig)\n ?.build?.rollupOptions?.external\n )\n ? (context.config.build.override as ViteResolvedBuildConfig)\n ?.build?.rollupOptions?.external\n : (id: string) =>\n toArray(\n (context.config.build as ViteResolvedBuildConfig)?.build\n ?.rollupOptions?.external\n ).includes(id)\n : context.config.build.variant === \"rollup\" &&\n context.config.build.external\n ? isFunction(context.config.build.external)\n ? context.config.build.external\n : (id: string) =>\n toArray(\n (context.config.build as RolldownResolvedBuildConfig)\n .external\n ).includes(id)\n : context.config.build.variant === \"vite\" &&\n (context.config.build as ViteResolvedBuildConfig).build\n ?.rollupOptions?.external\n ? isFunction(\n (context.config.build as ViteResolvedBuildConfig).build\n ?.rollupOptions?.external\n )\n ? (context.config.build as ViteResolvedBuildConfig).build\n ?.rollupOptions?.external\n : (id: string) =>\n toArray(\n (context.config.build as ViteResolvedBuildConfig)\n ?.build?.rollupOptions?.external\n ).includes(id)\n : undefined;\n if (\n isFunction(externalFn) &&\n externalFn(source, importer, isResolved)\n ) {\n return true;\n }\n\n if (\n context.config.build.external &&\n toArray(context.config.build.external).includes(source)\n ) {\n return true;\n }\n\n if (\n context.config.build.noExternal &&\n toArray(context.config.build.noExternal).includes(source)\n ) {\n return false;\n }\n\n if (context.builtins.includes(source)) {\n return context.config.projectType !== \"application\";\n }\n\n return !context.config.build.skipNodeModulesBundle;\n },\n plugins: [\n typescriptPlugin({\n check: false,\n tsconfig: context.tsconfig.tsconfigFilePath\n }),\n context.config.build.define &&\n Object.keys(context.config.build.define).length > 0 &&\n replace({\n sourceMap: context.config.mode === \"development\",\n preventAssignment: true,\n ...(context.config.build.define ?? {})\n }),\n context.config.build.inject &&\n Object.keys(context.config.build.inject).length > 0 &&\n inject({\n sourceMap: context.config.mode === \"development\",\n ...context.config.build.inject\n }),\n alias({\n entries: 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 }),\n getBabelInputPlugin(\n defu(context.config.transform.babel, {\n caller: {\n name: \"powerlines\",\n supportsStaticESM: true\n },\n cwd: context.config.projectRoot,\n babelrc: false,\n extensions: [\".js\", \".jsx\", \".ts\", \".tsx\"],\n babelHelpers: \"bundled\",\n skipPreflightCheck: true,\n exclude: /node_modules/\n }) as RollupBabelInputPluginOptions\n ),\n resolve({\n moduleDirectories: [\"node_modules\"],\n preferBuiltins: true\n }),\n dtsBundlePlugin\n ]\n },\n context.config.build.variant === \"rolldown\" ||\n context.config.build.variant === \"rollup\"\n ? context.config.build.override\n : {},\n context.config.build.variant === \"vite\"\n ? (context.config.build.override as ViteResolvedBuildConfig).build\n ?.rollupOptions\n : {},\n context.config.build.variant === \"rolldown\" ||\n context.config.build.variant === \"rollup\"\n ? omit(context.config.build, [\"override\", \"variant\"])\n : {},\n context.config.build.variant === \"vite\"\n ? (context.config.build as ViteResolvedBuildConfig).build\n : {},\n {\n experimental: {\n viteMode: context.config.build.variant === \"vite\"\n },\n resolve: {\n mainFields: context.config.build.mainFields,\n conditions: context.config.build.conditions,\n define: context.config.build.define,\n extensions: context.config.build.extensions\n },\n platform: context.config.build.platform,\n tsconfig: context.tsconfig.tsconfigFilePath,\n cache: !context.config.skipCache\n ? joinPaths(context.cachePath, \"rolldown\")\n : false,\n logLevel: context.config.logLevel,\n onLog: context.log,\n jsx: \"automatic\",\n keepNames: true,\n treeshake: true,\n minify: context.config.mode === \"production\",\n output: [\n {\n dir: context.config.output.buildPath,\n format: \"es\",\n preserveModules: true,\n sourcemap: context.config.mode === \"development\"\n },\n {\n dir: context.config.output.buildPath,\n format: \"cjs\",\n preserveModules: true,\n sourcemap: context.config.mode === \"development\"\n }\n ]\n }\n );\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 { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { extractRolldownConfig } from \"powerlines/lib/build/rolldown\";\nimport { RolldownUserConfig } from \"powerlines/types/config\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { rolldown as build } from \"rolldown\";\nimport { createRolldownPlugin } from \"./helpers/unplugin\";\nimport { RolldownPluginContext, RolldownPluginOptions } 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 = <\n TContext extends RolldownPluginContext = RolldownPluginContext\n>(\n options: RolldownPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rolldown\",\n config() {\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n build: {\n ...options,\n variant: \"rolldown\"\n }\n } as Partial<RolldownUserConfig>;\n },\n async build() {\n const result = await build(\n defu(\n {\n plugins: [createRolldownPlugin(this)]\n },\n extractRolldownConfig(this)\n )\n );\n\n await Promise.all(\n toArray(this.config.output.format).map(async format =>\n result.write({\n format\n })\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"yxBAgDA,MAAaA,EAA0B,CACrC,KAAM,wBACN,MAAM,eAAe,EAAO,EAAQ,CAClC,IAAK,GAAM,EAAG,KAAS,OAAO,QAAQ,EAAO,CAAE,CAC7C,GACE,EAAK,OAAS,SACd,CAAC,EAAK,SACN,EAAK,gBAAkB,KAEvB,SAIF,IAAM,EAAc,EAAK,SAAS,QAChC,sDACA,QACD,CAEK,EAAwB,KAAK,UACjC,KAAK,EAAK,eAAe,QAAQ,kBAAmB,GAAG,GACxD,CAED,KAAK,SAAS,CACZ,KAAM,QACN,SAAU,EACV,OAAQ,EAAK,QAAQ,SAAS,UAAU,CACpC,iBAAiB,EAAsB,6BAA6B,EAAsB,KAC1F,iBAAiB,EAAsB,KAC5C,CAAC,GAGP,CChCD,SAAgB,EACd,EAC6B,CAC7B,OAAOC,EACL,CACE,MAAO,EACL,EAAQ,EAAQ,OAAO,MAAM,CAAC,IAAI,GAChC,EAAS,EAAM,CAA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