@powerlines/plugin-rolldown 0.7.311 → 0.7.313
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 +8 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{plugin-D3N0bR7F.d.mts → plugin-BdSnczBA.d.mts} +2 -2
- package/dist/{plugin-BQOzukLC.d.cts.map → plugin-BdSnczBA.d.mts.map} +1 -1
- package/dist/{plugin-BQOzukLC.d.cts → plugin-Cc3jdTao.d.cts} +2 -2
- package/dist/{plugin-D3N0bR7F.d.mts.map → plugin-Cc3jdTao.d.cts.map} +1 -1
- package/dist/resolve-options-CzRjKLxB.mjs.map +1 -1
- package/dist/{resolve-options-ClTjRIOD.d.cts → resolve-options-ZAE6aktN.d.cts} +2 -2
- package/dist/resolve-options-ZAE6aktN.d.cts.map +1 -0
- package/dist/{resolve-options-U3hiur0w.d.mts → resolve-options-yKvK6eoC.d.mts} +2 -2
- package/dist/resolve-options-yKvK6eoC.d.mts.map +1 -0
- 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-CS3iXz6Q.d.cts → unplugin-D5sVOAkL.d.mts} +2 -2
- package/dist/unplugin-D5sVOAkL.d.mts.map +1 -0
- package/dist/{unplugin-muEZreqz.d.mts → unplugin-DjWZD0Qu.d.cts} +2 -2
- package/dist/unplugin-DjWZD0Qu.d.cts.map +1 -0
- package/package.json +5 -5
- package/dist/resolve-options-ClTjRIOD.d.cts.map +0 -1
- package/dist/resolve-options-U3hiur0w.d.mts.map +0 -1
- package/dist/unplugin-CS3iXz6Q.d.cts.map +0 -1
- package/dist/unplugin-muEZreqz.d.mts.map +0 -1
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-ZAE6aktN.cjs";
|
|
2
2
|
import "../build-uc1j2t5S.cjs";
|
|
3
|
-
import "../plugin-
|
|
4
|
-
import { t as createRolldownPlugin } from "../unplugin-
|
|
3
|
+
import "../plugin-Cc3jdTao.cjs";
|
|
4
|
+
import { t as createRolldownPlugin } from "../unplugin-DjWZD0Qu.cjs";
|
|
5
5
|
import "../index-CiBIKhMu.cjs";
|
|
6
6
|
export { createRolldownPlugin, resolveOptions };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-yKvK6eoC.mjs";
|
|
2
2
|
import "../build-CaB54E40.mjs";
|
|
3
|
-
import "../plugin-
|
|
4
|
-
import { t as createRolldownPlugin } from "../unplugin-
|
|
3
|
+
import "../plugin-BdSnczBA.mjs";
|
|
4
|
+
import { t as createRolldownPlugin } from "../unplugin-D5sVOAkL.mjs";
|
|
5
5
|
import "../index-CW2WHUXP.mjs";
|
|
6
6
|
export { createRolldownPlugin, resolveOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-ZAE6aktN.cjs";
|
|
2
2
|
export { resolveOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-yKvK6eoC.mjs";
|
|
2
2
|
export { resolveOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../build-uc1j2t5S.cjs";
|
|
2
|
-
import "../plugin-
|
|
3
|
-
import { t as createRolldownPlugin } from "../unplugin-
|
|
2
|
+
import "../plugin-Cc3jdTao.cjs";
|
|
3
|
+
import { t as createRolldownPlugin } from "../unplugin-DjWZD0Qu.cjs";
|
|
4
4
|
export { createRolldownPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../build-CaB54E40.mjs";
|
|
2
|
-
import "../plugin-
|
|
3
|
-
import { t as createRolldownPlugin } from "../unplugin-
|
|
2
|
+
import "../plugin-BdSnczBA.mjs";
|
|
3
|
+
import { t as createRolldownPlugin } from "../unplugin-D5sVOAkL.mjs";
|
|
4
4
|
export { createRolldownPlugin };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { t as resolveOptions } from "./resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "./resolve-options-ZAE6aktN.cjs";
|
|
2
2
|
import { n as __ΩRolldownOptions, t as RolldownOptions } from "./build-uc1j2t5S.cjs";
|
|
3
|
-
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "./plugin-
|
|
4
|
-
import { t as createRolldownPlugin } from "./unplugin-
|
|
3
|
+
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "./plugin-Cc3jdTao.cjs";
|
|
4
|
+
import { t as createRolldownPlugin } from "./unplugin-DjWZD0Qu.cjs";
|
|
5
5
|
import "./index-CiBIKhMu.cjs";
|
|
6
6
|
import "./index-B_e8BwCm.cjs";
|
|
7
7
|
import { Plugin } from "@powerlines/core/types/plugin";
|
|
8
8
|
|
|
9
9
|
//#region src/index.d.ts
|
|
10
|
+
declare module "@powerlines/core" {
|
|
11
|
+
interface BaseConfig {
|
|
12
|
+
rolldown?: RolldownPluginOptions;
|
|
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":";;;;;;;;;;;eAmCe;;;AAJS;;;AAIY,cAOvB,MAPuB,EAAA,CAAA,iBAQjB,qBARiB,GAQO,qBARP,CAAA,CAAA,OAAA,CAAA,EAUzB,qBAVyB,EAAA,GAWjC,MAXiC,CAW1B,QAX0B,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { t as resolveOptions } from "./resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "./resolve-options-yKvK6eoC.mjs";
|
|
2
2
|
import { n as __ΩRolldownOptions, t as RolldownOptions } from "./build-CaB54E40.mjs";
|
|
3
|
-
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "./plugin-
|
|
4
|
-
import { t as createRolldownPlugin } from "./unplugin-
|
|
3
|
+
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "./plugin-BdSnczBA.mjs";
|
|
4
|
+
import { t as createRolldownPlugin } from "./unplugin-D5sVOAkL.mjs";
|
|
5
5
|
import "./index-CW2WHUXP.mjs";
|
|
6
6
|
import "./index-Cc7fCJU9.mjs";
|
|
7
7
|
import { Plugin } from "@powerlines/core/types/plugin";
|
|
8
8
|
|
|
9
9
|
//#region src/index.d.ts
|
|
10
|
+
declare module "@powerlines/core" {
|
|
11
|
+
interface BaseConfig {
|
|
12
|
+
rolldown?: RolldownPluginOptions;
|
|
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":";;;;;;;;;;;eAmCe;;;AAJS;;;AAIY,cAOvB,MAPuB,EAAA,CAAA,iBAQjB,qBARiB,GAQO,qBARP,CAAA,CAAA,OAAA,CAAA,EAUzB,qBAVyB,EAAA,GAWjC,MAXiC,CAW1B,QAX0B,CAAA"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["build"],"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 { Plugin } from \"@powerlines/core/types/plugin\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { rolldown as build } from \"rolldown\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createRolldownPlugin } from \"./helpers/unplugin\";\nimport {\n RolldownPluginContext,\n RolldownPluginOptions,\n RolldownPluginResolvedConfig\n} 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 rolldown: {\n ...options\n }\n } as Partial<RolldownPluginResolvedConfig>;\n },\n async build() {\n const result = await build(\n defu(\n {\n plugins: [createRolldownPlugin(this)]\n },\n resolveOptions(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":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["build"],"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 { Plugin } from \"@powerlines/core/types/plugin\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { rolldown as build } from \"rolldown\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createRolldownPlugin } from \"./helpers/unplugin\";\nimport {\n RolldownPluginContext,\n RolldownPluginOptions,\n RolldownPluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n rolldown?: RolldownPluginOptions;\n }\n}\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 rolldown: {\n ...options\n }\n } as Partial<RolldownPluginResolvedConfig>;\n },\n async build() {\n const result = await build(\n defu(\n {\n plugins: [createRolldownPlugin(this)]\n },\n resolveOptions(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":";;;;;;;;;;;;;;AA0CA,MAAa,UAGX,UAAiC,EAAE,KACd;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,UAAU,EACR,GAAG,SACJ;IACF;;EAEH,MAAM,QAAQ;GACZ,MAAM,SAAS,MAAMA,SACnB,KACE,EACE,SAAS,CAAC,qBAAqB,KAAK,CAAC,EACtC,EACD,eAAe,KAAK,CACrB,CACF;AAED,SAAM,QAAQ,IACZ,QAAQ,KAAK,OAAO,OAAO,OAAO,CAAC,IAAI,OAAM,WAC3C,OAAO,MAAM,EACX,QACD,CAAC,CACH,CACF;;EAEJ;;AAGH,kBAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as RolldownOptions } from "./build-CaB54E40.mjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type RolldownPluginOptions = Partial<RolldownOptions>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩRolldownPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩRolldownPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { __ΩRolldownPluginContext as a, __ΩRolldownPluginUserConfig as c, RolldownPluginUserConfig as i, RolldownPluginOptions as n, __ΩRolldownPluginOptions as o, RolldownPluginResolvedConfig as r, __ΩRolldownPluginResolvedConfig as s, RolldownPluginContext as t };
|
|
19
|
-
//# sourceMappingURL=plugin-
|
|
19
|
+
//# sourceMappingURL=plugin-BdSnczBA.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-BdSnczBA.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,qBAAA,GAAwB,QAAQ;UAE3B,wBAAA,SAAiC;EAFtC,QAAA,EAGA,qBAHqB;AAEjC;AAIiB,UAAA,4BAAA,SAAqC,cAAA,CAAA;EAI1C,QAAA,EAHA,eAGqB;;AAE7B,KAFQ,qBAER,CAAA,wBADsB,4BACtB,GAAA,4BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,wCAAA,GAAA,EAAA;AAAd,2CAAA,GAAA,EAAA;AAAa,+CAAA,GAAA,EAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as RolldownOptions } from "./build-uc1j2t5S.cjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type RolldownPluginOptions = Partial<RolldownOptions>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩRolldownPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩRolldownPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { __ΩRolldownPluginContext as a, __ΩRolldownPluginUserConfig as c, RolldownPluginUserConfig as i, RolldownPluginOptions as n, __ΩRolldownPluginOptions as o, RolldownPluginResolvedConfig as r, __ΩRolldownPluginResolvedConfig as s, RolldownPluginContext as t };
|
|
19
|
-
//# sourceMappingURL=plugin-
|
|
19
|
+
//# sourceMappingURL=plugin-Cc3jdTao.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-Cc3jdTao.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,qBAAA,GAAwB,QAAQ;UAE3B,wBAAA,SAAiC;EAFtC,QAAA,EAGA,qBAHqB;AAEjC;AAIiB,UAAA,4BAAA,SAAqC,cAAA,CAAA;EAI1C,QAAA,EAHA,eAGqB;;AAE7B,KAFQ,qBAER,CAAA,wBADsB,4BACtB,GAAA,4BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,wCAAA,GAAA,EAAA;AAAd,2CAAA,GAAA,EAAA;AAAa,+CAAA,GAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-CzRjKLxB.mjs","names":["alias"],"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-CzRjKLxB.mjs","names":["alias"],"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 { BabelPluginResolvedConfig } from \"@powerlines/plugin-babel/types/plugin\";\nimport { dtsBundlePlugin } from \"@powerlines/plugin-rollup/helpers/resolve-options\";\nimport { RollupPluginResolvedConfig } from \"@powerlines/plugin-rollup/types/plugin\";\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 { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport defu from \"defu\";\nimport { globSync } from \"node:fs\";\nimport { RolldownOptions, RollupLog } from \"rolldown\";\nimport { viteAliasPlugin as alias } from \"rolldown/experimental\";\nimport typescriptPlugin from \"rollup-plugin-typescript2\";\nimport { RolldownPluginResolvedConfig } from \"../types/plugin\";\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 resolveOptions(context: Context): RolldownOptions {\n return defu<RolldownOptions, any>(\n {\n input: globSync(\n toArray(context.entry).map(entry =>\n isString(entry) ? entry : entry.file\n )\n ).flat(),\n external: (source: string) => {\n if (\n context.config.resolve.external &&\n toArray(context.config.resolve.external).includes(source)\n ) {\n return true;\n }\n\n if (\n context.config.resolve.noExternal &&\n toArray(context.config.resolve.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.resolve.skipNodeModulesBundle;\n },\n plugins: [\n typescriptPlugin({\n check: false,\n tsconfig: context.tsconfig.tsconfigFilePath\n }),\n context.config.define &&\n Object.keys(context.config.define).length > 0 &&\n replace({\n sourceMap: context.config.mode === \"development\",\n preventAssignment: true,\n ...(context.config.define ?? {})\n }),\n context.config.inject &&\n Object.keys(context.config.inject).length > 0 &&\n inject({\n sourceMap: context.config.mode === \"development\",\n ...context.config.inject\n }),\n alias({\n entries: 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 }),\n (context.config as BabelPluginResolvedConfig).babel &&\n getBabelInputPlugin(\n defu((context.config as BabelPluginResolvedConfig).babel, {\n caller: {\n name: \"powerlines\",\n supportsStaticESM: true\n },\n cwd: context.config.root,\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 as RolldownPluginResolvedConfig)?.rolldown\n ? (context.config as RolldownPluginResolvedConfig)?.rolldown\n : {},\n (context.config as RollupPluginResolvedConfig)?.rollup\n ? (context.config as RollupPluginResolvedConfig)?.rollup\n : {},\n {\n resolve: {\n alias: context.alias,\n mainFields: context.config.resolve.mainFields,\n conditions: context.config.resolve.conditions,\n define: context.config.define,\n extensions: context.config.resolve.extensions\n },\n transform: {\n define: context.config.define,\n inject: context.config.inject\n },\n platform: context.config.platform,\n tsconfig: appendPath(\n context.tsconfig.tsconfigFilePath,\n context.workspaceConfig.workspaceRoot\n ),\n cache: !context.config.skipCache\n ? joinPaths(context.cachePath, \"rolldown\")\n : false,\n logLevel: context.config.logLevel,\n onLog(level: \"info\" | \"debug\" | \"warn\", log: RollupLog) {\n if (log.message?.trim()) {\n context.log(\n level === \"info\" ? \"debug\" : level,\n log.message?.trim() ?? \"\"\n );\n }\n },\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 keepNames: true,\n treeshake: true,\n shimMissingExports: true,\n transform: {\n target: \"esnext\"\n }\n }\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from "@powerlines/core
|
|
1
|
+
import { Context } from "@powerlines/core";
|
|
2
2
|
import { RolldownOptions } from "rolldown";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/resolve-options.d.ts
|
|
@@ -12,4 +12,4 @@ import { RolldownOptions } from "rolldown";
|
|
|
12
12
|
declare function resolveOptions(context: Context): RolldownOptions;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { resolveOptions as t };
|
|
15
|
-
//# sourceMappingURL=resolve-options-
|
|
15
|
+
//# sourceMappingURL=resolve-options-ZAE6aktN.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-ZAE6aktN.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8CA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RolldownOptions } from "rolldown";
|
|
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
|
|
|
@@ -12,4 +12,4 @@ import { Context } from "@powerlines/core/types";
|
|
|
12
12
|
declare function resolveOptions(context: Context): RolldownOptions;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { resolveOptions as t };
|
|
15
|
-
//# sourceMappingURL=resolve-options-
|
|
15
|
+
//# sourceMappingURL=resolve-options-yKvK6eoC.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-yKvK6eoC.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8CA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-uc1j2t5S.cjs";
|
|
2
|
-
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-Cc3jdTao.cjs";
|
|
3
3
|
import "../index-B_e8BwCm.cjs";
|
|
4
4
|
export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownOptions, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-CaB54E40.mjs";
|
|
2
|
-
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-BdSnczBA.mjs";
|
|
3
3
|
import "../index-Cc7fCJU9.mjs";
|
|
4
4
|
export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownOptions, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-uc1j2t5S.cjs";
|
|
2
|
-
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-Cc3jdTao.cjs";
|
|
3
3
|
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-CaB54E40.mjs";
|
|
2
|
-
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-BdSnczBA.mjs";
|
|
3
3
|
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as RolldownPluginContext } from "./plugin-
|
|
1
|
+
import { t as RolldownPluginContext } from "./plugin-BdSnczBA.mjs";
|
|
2
2
|
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.d.ts
|
|
5
5
|
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { createRolldownPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-
|
|
8
|
+
//# sourceMappingURL=unplugin-D5sVOAkL.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-D5sVOAkL.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,QAAA,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as RolldownPluginContext } from "./plugin-
|
|
1
|
+
import { t as RolldownPluginContext } from "./plugin-Cc3jdTao.cjs";
|
|
2
2
|
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.d.ts
|
|
5
5
|
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { createRolldownPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-
|
|
8
|
+
//# sourceMappingURL=unplugin-DjWZD0Qu.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-DjWZD0Qu.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,QAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-rolldown",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.313",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"keywords": ["rolldown", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"peerDependencies": { "rolldown": ">=1.0.0-beta.53" },
|
|
44
44
|
"peerDependenciesMeta": { "rolldown": { "optional": false } },
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@powerlines/core": "^0.
|
|
47
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
48
|
-
"@powerlines/plugin-rollup": "^0.7.
|
|
46
|
+
"@powerlines/core": "^0.1.1",
|
|
47
|
+
"@powerlines/plugin-babel": "^0.12.312",
|
|
48
|
+
"@powerlines/plugin-rollup": "^0.7.313",
|
|
49
49
|
"@stryke/convert": "^0.6.40",
|
|
50
50
|
"@stryke/fs": "^0.33.43",
|
|
51
51
|
"@stryke/path": "^0.26.6",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
},
|
|
89
89
|
"./*": "./*"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "cb34e2756e722735631673a7c06509d2640284c1"
|
|
92
92
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-ClTjRIOD.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8CA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-U3hiur0w.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8CA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-CS3iXz6Q.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,QAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-muEZreqz.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,QAAA,CAAA"}
|