@powerlines/plugin-rolldown 0.7.346 → 0.7.348
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 +14 -16
- package/dist/{build-BD4yd_-7.d.mts → build-DOGZKJik.d.mts} +1 -1
- package/dist/build-DOGZKJik.d.mts.map +1 -0
- package/dist/{build-uc1j2t5S.d.cts → build-DORzWaW1.d.cts} +1 -1
- package/dist/build-DORzWaW1.d.cts.map +1 -0
- package/dist/helpers/index.cjs +4 -4
- package/dist/helpers/index.d.cts +2 -4
- package/dist/helpers/index.d.mts +2 -5
- package/dist/helpers/index.mjs +2 -3
- package/dist/helpers/resolve-options.cjs +2 -1
- package/dist/helpers/resolve-options.d.cts +1 -1
- package/dist/helpers/resolve-options.d.mts +1 -1
- package/dist/helpers/resolve-options.mjs +116 -2
- package/dist/helpers/resolve-options.mjs.map +1 -0
- package/dist/helpers/unplugin.cjs +11 -2
- package/dist/helpers/unplugin.d.cts +1 -2
- package/dist/helpers/unplugin.d.mts +1 -3
- package/dist/helpers/unplugin.mjs +10 -2
- package/dist/helpers/unplugin.mjs.map +1 -0
- package/dist/index.cjs +9 -10
- package/dist/index.d.cts +4 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{plugin-CZtbRXfW.d.mts → plugin-BzTt-GLm.d.mts} +2 -2
- package/dist/plugin-BzTt-GLm.d.mts.map +1 -0
- package/dist/{plugin-Cc3jdTao.d.cts → plugin-WveDKsQC.d.cts} +2 -2
- package/dist/plugin-WveDKsQC.d.cts.map +1 -0
- package/dist/{resolve-options-BP1XPpj1.cjs → resolve-options-BnM4AYul.cjs} +23 -23
- package/dist/{resolve-options-BAoqPP1-.d.mts → resolve-options-D0gfNbL9.d.cts} +2 -3
- package/dist/resolve-options-D0gfNbL9.d.cts.map +1 -0
- package/dist/{resolve-options-ZAE6aktN.d.cts → resolve-options-LPLv7KEd.d.mts} +2 -3
- package/dist/resolve-options-LPLv7KEd.d.mts.map +1 -0
- package/dist/types/build.d.cts +1 -1
- package/dist/types/build.d.mts +1 -1
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.mts +2 -3
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -2
- package/dist/unplugin-BpsByuTe.d.mts +8 -0
- package/dist/unplugin-BpsByuTe.d.mts.map +1 -0
- package/dist/unplugin-CsWOafoO.d.cts +8 -0
- package/dist/unplugin-CsWOafoO.d.cts.map +1 -0
- package/package.json +21 -20
- package/dist/build-BD4yd_-7.d.mts.map +0 -1
- package/dist/build-DJTI0ZMx.cjs +0 -0
- package/dist/build-XTM4L3VY.mjs +0 -1
- package/dist/build-uc1j2t5S.d.cts.map +0 -1
- package/dist/helpers-C9XSjwSZ.mjs +0 -1
- package/dist/helpers-yB1XkvQI.cjs +0 -0
- package/dist/index-B_e8BwCm.d.cts +0 -1
- package/dist/index-CW2WHUXP.d.mts +0 -1
- package/dist/index-CiBIKhMu.d.cts +0 -1
- package/dist/index-mH1MEWOz.d.mts +0 -1
- package/dist/plugin-CZtbRXfW.d.mts.map +0 -1
- package/dist/plugin-Cc3jdTao.d.cts.map +0 -1
- package/dist/plugin-D3B5E_Hg.mjs +0 -1
- package/dist/plugin-D5qyQPqC.cjs +0 -0
- package/dist/resolve-options-BAoqPP1-.d.mts.map +0 -1
- package/dist/resolve-options-CzRjKLxB.mjs +0 -117
- package/dist/resolve-options-CzRjKLxB.mjs.map +0 -1
- package/dist/resolve-options-ZAE6aktN.d.cts.map +0 -1
- package/dist/unplugin-BVk-EAp1.mjs +0 -11
- package/dist/unplugin-BVk-EAp1.mjs.map +0 -1
- package/dist/unplugin-C5_LWDUG.cjs +0 -16
- package/dist/unplugin-DOFVgTa8.d.mts +0 -8
- package/dist/unplugin-DOFVgTa8.d.mts.map +0 -1
- package/dist/unplugin-DjWZD0Qu.d.cts +0 -8
- package/dist/unplugin-DjWZD0Qu.d.cts.map +0 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://stormsoftware.com/projects/powerlines) [](http://commitizen.github.io/cz-cli/)  
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -58,21 +58,19 @@ A Powerlines plugin to assist in building projects with [Rolldown](https://rolld
|
|
|
58
58
|
|
|
59
59
|
## Table of Contents
|
|
60
60
|
|
|
61
|
-
- [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- [
|
|
65
|
-
- [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- [Contributing](#contributing)
|
|
75
|
-
- [Contributors](#contributors)
|
|
61
|
+
- [Installing](#installing)
|
|
62
|
+
- [Reduced Package Size](#reduced-package-size)
|
|
63
|
+
- [Development](#development)
|
|
64
|
+
- [Building](#building)
|
|
65
|
+
- [Running unit tests](#running-unit-tests)
|
|
66
|
+
- [Linting](#linting)
|
|
67
|
+
- [Storm Workspaces](#storm-workspaces)
|
|
68
|
+
- [Roadmap](#roadmap)
|
|
69
|
+
- [Support](#support)
|
|
70
|
+
- [License](#license)
|
|
71
|
+
- [Changelog](#changelog)
|
|
72
|
+
- [Contributing](#contributing)
|
|
73
|
+
- [Contributors](#contributors)
|
|
76
74
|
|
|
77
75
|
<!-- END doctoc -->
|
|
78
76
|
|
|
@@ -5,4 +5,4 @@ type RolldownOptions$1 = Omit<RolldownOptions, "input" | "external" | "tsconfig"
|
|
|
5
5
|
declare type __ΩRolldownOptions = any[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { __ΩRolldownOptions as n, RolldownOptions$1 as t };
|
|
8
|
-
//# sourceMappingURL=build-
|
|
8
|
+
//# sourceMappingURL=build-DOGZKJik.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-DOGZKJik.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,iBAAA,GAAkB,IAAA,CAC5B,eAAA;AAAA"}
|
|
@@ -5,4 +5,4 @@ type RolldownOptions$1 = Omit<RolldownOptions, "input" | "external" | "tsconfig"
|
|
|
5
5
|
declare type __ΩRolldownOptions = any[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { __ΩRolldownOptions as n, RolldownOptions$1 as t };
|
|
8
|
-
//# sourceMappingURL=build-
|
|
8
|
+
//# sourceMappingURL=build-DORzWaW1.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-DORzWaW1.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,iBAAA,GAAkB,IAAA,CAC5B,eAAA;AAAA"}
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
require('
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_resolve_options = require('../resolve-options-BnM4AYul.cjs');
|
|
3
|
+
const require_helpers_unplugin = require('./unplugin.cjs');
|
|
4
4
|
|
|
5
|
-
exports.createRolldownPlugin =
|
|
5
|
+
exports.createRolldownPlugin = require_helpers_unplugin.createRolldownPlugin;
|
|
6
6
|
exports.resolveOptions = require_resolve_options.resolveOptions;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
2
|
-
import "../
|
|
3
|
-
import { t as createRolldownPlugin } from "../unplugin-DjWZD0Qu.cjs";
|
|
4
|
-
import "../index-CiBIKhMu.cjs";
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-D0gfNbL9.cjs";
|
|
2
|
+
import { t as createRolldownPlugin } from "../unplugin-CsWOafoO.cjs";
|
|
5
3
|
export { createRolldownPlugin, resolveOptions };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
2
|
-
import "../
|
|
3
|
-
import "../plugin-CZtbRXfW.mjs";
|
|
4
|
-
import { t as createRolldownPlugin } from "../unplugin-DOFVgTa8.mjs";
|
|
5
|
-
import "../index-mH1MEWOz.mjs";
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-LPLv7KEd.mjs";
|
|
2
|
+
import { t as createRolldownPlugin } from "../unplugin-BpsByuTe.mjs";
|
|
6
3
|
export { createRolldownPlugin, resolveOptions };
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "../helpers-C9XSjwSZ.mjs";
|
|
1
|
+
import { resolveOptions } from "./resolve-options.mjs";
|
|
2
|
+
import { createRolldownPlugin } from "./unplugin.mjs";
|
|
4
3
|
|
|
5
4
|
export { createRolldownPlugin, resolveOptions };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_resolve_options = require('../resolve-options-BnM4AYul.cjs');
|
|
2
3
|
|
|
3
4
|
exports.resolveOptions = require_resolve_options.resolveOptions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-D0gfNbL9.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-LPLv7KEd.mjs";
|
|
2
2
|
export { resolveOptions };
|
|
@@ -1,3 +1,117 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toArray } from "@stryke/convert/to-array";
|
|
2
|
+
import defu from "defu";
|
|
3
|
+
import { dtsBundlePlugin } from "@powerlines/plugin-rollup/helpers/resolve-options";
|
|
4
|
+
import { getBabelInputPlugin } from "@rollup/plugin-babel";
|
|
5
|
+
import inject from "@rollup/plugin-inject";
|
|
6
|
+
import resolve from "@rollup/plugin-node-resolve";
|
|
7
|
+
import replace from "@rollup/plugin-replace";
|
|
8
|
+
import { appendPath } from "@stryke/path/append";
|
|
9
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
10
|
+
import { isString } from "@stryke/type-checks/is-string";
|
|
11
|
+
import { globSync } from "node:fs";
|
|
12
|
+
import { viteAliasPlugin } from "rolldown/experimental";
|
|
13
|
+
import typescriptPlugin from "rollup-plugin-typescript2";
|
|
2
14
|
|
|
3
|
-
|
|
15
|
+
//#region src/helpers/resolve-options.ts
|
|
16
|
+
/**
|
|
17
|
+
* Resolves the options for [rolldown](https://rolldown.rs).
|
|
18
|
+
*
|
|
19
|
+
* @param context - The build context.
|
|
20
|
+
* @returns The resolved options.
|
|
21
|
+
*/
|
|
22
|
+
function resolveOptions(context) {
|
|
23
|
+
return defu({
|
|
24
|
+
input: globSync(toArray(context.entry).map((entry) => isString(entry) ? entry : entry.file)).flat(),
|
|
25
|
+
external: (source) => {
|
|
26
|
+
if (context.config.resolve.external && toArray(context.config.resolve.external).includes(source)) return true;
|
|
27
|
+
if (context.config.resolve.noExternal && toArray(context.config.resolve.noExternal).includes(source)) return false;
|
|
28
|
+
if (context.builtins.includes(source)) return context.config.projectType !== "application";
|
|
29
|
+
return !context.config.resolve.skipNodeModulesBundle;
|
|
30
|
+
},
|
|
31
|
+
plugins: [
|
|
32
|
+
typescriptPlugin({
|
|
33
|
+
check: false,
|
|
34
|
+
tsconfig: context.tsconfig.tsconfigFilePath
|
|
35
|
+
}),
|
|
36
|
+
context.config.define && Object.keys(context.config.define).length > 0 && replace({
|
|
37
|
+
sourceMap: context.config.mode === "development",
|
|
38
|
+
preventAssignment: true,
|
|
39
|
+
...context.config.define ?? {}
|
|
40
|
+
}),
|
|
41
|
+
context.config.inject && Object.keys(context.config.inject).length > 0 && inject({
|
|
42
|
+
sourceMap: context.config.mode === "development",
|
|
43
|
+
...context.config.inject
|
|
44
|
+
}),
|
|
45
|
+
viteAliasPlugin({ entries: Object.entries(context.alias).reduce((ret, [id, path]) => {
|
|
46
|
+
if (!ret.find((e) => e.find === id)) ret.push({
|
|
47
|
+
find: id,
|
|
48
|
+
replacement: path
|
|
49
|
+
});
|
|
50
|
+
else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
51
|
+
return ret;
|
|
52
|
+
}, []) }),
|
|
53
|
+
context.config.babel && getBabelInputPlugin(defu(context.config.babel, {
|
|
54
|
+
caller: {
|
|
55
|
+
name: "powerlines",
|
|
56
|
+
supportsStaticESM: true
|
|
57
|
+
},
|
|
58
|
+
cwd: context.config.root,
|
|
59
|
+
babelrc: false,
|
|
60
|
+
extensions: [
|
|
61
|
+
".js",
|
|
62
|
+
".jsx",
|
|
63
|
+
".ts",
|
|
64
|
+
".tsx"
|
|
65
|
+
],
|
|
66
|
+
babelHelpers: "bundled",
|
|
67
|
+
skipPreflightCheck: true,
|
|
68
|
+
exclude: /node_modules/
|
|
69
|
+
})),
|
|
70
|
+
resolve({
|
|
71
|
+
moduleDirectories: ["node_modules"],
|
|
72
|
+
preferBuiltins: true
|
|
73
|
+
}),
|
|
74
|
+
dtsBundlePlugin
|
|
75
|
+
]
|
|
76
|
+
}, context.config?.rolldown ? context.config?.rolldown : {}, context.config?.rollup ? context.config?.rollup : {}, {
|
|
77
|
+
resolve: {
|
|
78
|
+
alias: context.alias,
|
|
79
|
+
mainFields: context.config.resolve.mainFields,
|
|
80
|
+
conditions: context.config.resolve.conditions,
|
|
81
|
+
define: context.config.define,
|
|
82
|
+
extensions: context.config.resolve.extensions
|
|
83
|
+
},
|
|
84
|
+
transform: {
|
|
85
|
+
define: context.config.define,
|
|
86
|
+
inject: context.config.inject
|
|
87
|
+
},
|
|
88
|
+
platform: context.config.platform,
|
|
89
|
+
tsconfig: appendPath(context.tsconfig.tsconfigFilePath, context.workspaceConfig.workspaceRoot),
|
|
90
|
+
cache: !context.config.skipCache ? joinPaths(context.cachePath, "rolldown") : false,
|
|
91
|
+
logLevel: context.config.logLevel,
|
|
92
|
+
onLog(level, log) {
|
|
93
|
+
if (log.message?.trim()) context.log(level === "info" ? "debug" : level, log.message?.trim() ?? "");
|
|
94
|
+
},
|
|
95
|
+
minify: context.config.mode === "production",
|
|
96
|
+
output: [{
|
|
97
|
+
dir: context.config.output.buildPath,
|
|
98
|
+
format: "es",
|
|
99
|
+
preserveModules: true,
|
|
100
|
+
sourcemap: context.config.mode === "development"
|
|
101
|
+
}, {
|
|
102
|
+
dir: context.config.output.buildPath,
|
|
103
|
+
format: "cjs",
|
|
104
|
+
preserveModules: true,
|
|
105
|
+
sourcemap: context.config.mode === "development"
|
|
106
|
+
}]
|
|
107
|
+
}, {
|
|
108
|
+
keepNames: true,
|
|
109
|
+
treeshake: true,
|
|
110
|
+
shimMissingExports: true,
|
|
111
|
+
transform: { target: "esnext" }
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
//#endregion
|
|
116
|
+
export { resolveOptions };
|
|
117
|
+
//# sourceMappingURL=resolve-options.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options.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,3 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_resolve_options = require('../resolve-options-BnM4AYul.cjs');
|
|
3
|
+
let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
4
|
+
let unplugin = require("unplugin");
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
//#region src/helpers/unplugin.ts
|
|
7
|
+
function createRolldownPlugin(context) {
|
|
8
|
+
return (0, unplugin.createEsbuildPlugin)((0, _powerlines_core_lib_unplugin.createUnplugin)(context))({});
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.createRolldownPlugin = createRolldownPlugin;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createUnplugin } from "@powerlines/core/lib/unplugin";
|
|
2
|
+
import { createEsbuildPlugin } from "unplugin";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/helpers/unplugin.ts
|
|
5
|
+
function createRolldownPlugin(context) {
|
|
6
|
+
return createEsbuildPlugin(createUnplugin(context))({});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createRolldownPlugin };
|
|
11
|
+
//# sourceMappingURL=unplugin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin.mjs","names":[],"sources":["../../src/helpers/unplugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { RolldownPluginContext } from \"../types/plugin\";\n\nexport function createRolldownPlugin(context: RolldownPluginContext) {\n return createEsbuildPlugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgB,qBAAqB,SAAgC;AACnE,QAAO,oBAAoB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
const require_resolve_options = require('./resolve-options-
|
|
3
|
-
const
|
|
4
|
-
require('./helpers
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_resolve_options = require('./resolve-options-BnM4AYul.cjs');
|
|
3
|
+
const require_helpers_unplugin = require('./helpers/unplugin.cjs');
|
|
4
|
+
require('./helpers/index.cjs');
|
|
5
5
|
require('./types/index.cjs');
|
|
6
|
-
let
|
|
6
|
+
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
7
7
|
let defu = require("defu");
|
|
8
8
|
defu = require_resolve_options.__toESM(defu);
|
|
9
9
|
let rolldown = require("rolldown");
|
|
@@ -22,15 +22,14 @@ const plugin = (options = {}) => {
|
|
|
22
22
|
};
|
|
23
23
|
},
|
|
24
24
|
async build() {
|
|
25
|
-
const result = await (0, rolldown.rolldown)((0, defu.default)({ plugins: [
|
|
26
|
-
await Promise.all((0,
|
|
25
|
+
const result = await (0, rolldown.rolldown)((0, defu.default)({ plugins: [require_helpers_unplugin.createRolldownPlugin(this)] }, require_resolve_options.resolveOptions(this)));
|
|
26
|
+
await Promise.all((0, _stryke_convert_to_array.toArray)(this.config.output.format).map(async (format) => result.write({ format })));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
var src_default = plugin;
|
|
31
30
|
|
|
32
31
|
//#endregion
|
|
33
|
-
exports.createRolldownPlugin =
|
|
34
|
-
exports.default =
|
|
32
|
+
exports.createRolldownPlugin = require_helpers_unplugin.createRolldownPlugin;
|
|
33
|
+
exports.default = plugin;
|
|
35
34
|
exports.plugin = plugin;
|
|
36
35
|
exports.resolveOptions = require_resolve_options.resolveOptions;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { t as resolveOptions } from "./resolve-options-
|
|
2
|
-
import { n as __ΩRolldownOptions, t as RolldownOptions } from "./build-
|
|
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-
|
|
5
|
-
import "./index-CiBIKhMu.cjs";
|
|
6
|
-
import "./index-B_e8BwCm.cjs";
|
|
1
|
+
import { t as resolveOptions } from "./resolve-options-D0gfNbL9.cjs";
|
|
2
|
+
import { n as __ΩRolldownOptions, t as RolldownOptions } from "./build-DORzWaW1.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-WveDKsQC.cjs";
|
|
4
|
+
import { t as createRolldownPlugin } from "./unplugin-CsWOafoO.cjs";
|
|
7
5
|
import { Plugin } from "@powerlines/core/types/plugin";
|
|
8
6
|
|
|
9
7
|
//#region src/index.d.ts
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAkCY,MAAA;IACR,QAAA,GAAW,qBAAA;EAAA;AAAA;AAJS;;;AAAA,cAWX,MAAA,oBACM,qBAAA,GAAwB,qBAAA,EAEzC,OAAA,GAAS,qBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { t as resolveOptions } from "./resolve-options-
|
|
2
|
-
import { n as __ΩRolldownOptions, t as RolldownOptions } from "./build-
|
|
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-
|
|
5
|
-
import "./index-mH1MEWOz.mjs";
|
|
6
|
-
import "./index-CW2WHUXP.mjs";
|
|
1
|
+
import { t as resolveOptions } from "./resolve-options-LPLv7KEd.mjs";
|
|
2
|
+
import { n as __ΩRolldownOptions, t as RolldownOptions } from "./build-DOGZKJik.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-BzTt-GLm.mjs";
|
|
4
|
+
import { t as createRolldownPlugin } from "./unplugin-BpsByuTe.mjs";
|
|
7
5
|
import { Plugin } from "@powerlines/core/types/plugin";
|
|
8
6
|
|
|
9
7
|
//#region src/index.d.ts
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAkCY,MAAA;IACR,QAAA,GAAW,qBAAA;EAAA;AAAA;AAJS;;;AAAA,cAWX,MAAA,oBACM,qBAAA,GAAwB,qBAAA,EAEzC,OAAA,GAAS,qBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./helpers
|
|
1
|
+
import { resolveOptions } from "./helpers/resolve-options.mjs";
|
|
2
|
+
import { createRolldownPlugin } from "./helpers/unplugin.mjs";
|
|
3
|
+
import "./helpers/index.mjs";
|
|
4
4
|
import "./types/index.mjs";
|
|
5
5
|
import { toArray } from "@stryke/convert/to-array";
|
|
6
6
|
import defu from "defu";
|
|
@@ -25,8 +25,7 @@ const plugin = (options = {}) => {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
var src_default = plugin;
|
|
29
28
|
|
|
30
29
|
//#endregion
|
|
31
|
-
export { createRolldownPlugin,
|
|
30
|
+
export { createRolldownPlugin, plugin as default, plugin, resolveOptions };
|
|
32
31
|
//# sourceMappingURL=index.mjs.map
|
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\ndeclare module \"@powerlines/core\" {\n interface Config {\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
|
|
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 Config {\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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as RolldownOptions } from "./build-
|
|
1
|
+
import { t as RolldownOptions } from "./build-DOGZKJik.mjs";
|
|
2
2
|
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
@@ -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-BzTt-GLm.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-BzTt-GLm.d.mts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;;;KAqBY,qBAAA,GAAwB,OAAA,CAAQ,eAAA;AAAA,UAE3B,wBAAA,SAAiC,UAAA;EAChD,QAAA,EAAU,qBAAA;AAAA;AAAA,UAGK,4BAAA,SAAqC,cAAA;EACpD,QAAA,EAAU,eAAA;AAAA;AAAA,KAGA,qBAAA,yBACc,4BAAA,GACtB,4BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as RolldownOptions } from "./build-
|
|
1
|
+
import { t as RolldownOptions } from "./build-DORzWaW1.cjs";
|
|
2
2
|
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
@@ -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-WveDKsQC.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-WveDKsQC.d.cts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;;;KAqBY,qBAAA,GAAwB,OAAA,CAAQ,eAAA;AAAA,UAE3B,wBAAA,SAAiC,UAAA;EAChD,QAAA,EAAU,qBAAA;AAAA;AAAA,UAGK,4BAAA,SAAqC,cAAA;EACpD,QAAA,EAAU,eAAA;AAAA;AAAA,KAGA,qBAAA,yBACc,4BAAA,GACtB,4BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -25,20 +25,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
let
|
|
28
|
+
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
29
29
|
let defu = require("defu");
|
|
30
30
|
defu = __toESM(defu);
|
|
31
|
-
let
|
|
32
|
-
let
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
let
|
|
40
|
-
let
|
|
41
|
-
let
|
|
31
|
+
let _powerlines_plugin_rollup_helpers_resolve_options = require("@powerlines/plugin-rollup/helpers/resolve-options");
|
|
32
|
+
let _rollup_plugin_babel = require("@rollup/plugin-babel");
|
|
33
|
+
let _rollup_plugin_inject = require("@rollup/plugin-inject");
|
|
34
|
+
_rollup_plugin_inject = __toESM(_rollup_plugin_inject);
|
|
35
|
+
let _rollup_plugin_node_resolve = require("@rollup/plugin-node-resolve");
|
|
36
|
+
_rollup_plugin_node_resolve = __toESM(_rollup_plugin_node_resolve);
|
|
37
|
+
let _rollup_plugin_replace = require("@rollup/plugin-replace");
|
|
38
|
+
_rollup_plugin_replace = __toESM(_rollup_plugin_replace);
|
|
39
|
+
let _stryke_path_append = require("@stryke/path/append");
|
|
40
|
+
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
41
|
+
let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
42
42
|
let node_fs = require("node:fs");
|
|
43
43
|
let rolldown_experimental = require("rolldown/experimental");
|
|
44
44
|
let rollup_plugin_typescript2 = require("rollup-plugin-typescript2");
|
|
@@ -53,10 +53,10 @@ rollup_plugin_typescript2 = __toESM(rollup_plugin_typescript2);
|
|
|
53
53
|
*/
|
|
54
54
|
function resolveOptions(context) {
|
|
55
55
|
return (0, defu.default)({
|
|
56
|
-
input: (0, node_fs.globSync)((0,
|
|
56
|
+
input: (0, node_fs.globSync)((0, _stryke_convert_to_array.toArray)(context.entry).map((entry) => (0, _stryke_type_checks_is_string.isString)(entry) ? entry : entry.file)).flat(),
|
|
57
57
|
external: (source) => {
|
|
58
|
-
if (context.config.resolve.external && (0,
|
|
59
|
-
if (context.config.resolve.noExternal && (0,
|
|
58
|
+
if (context.config.resolve.external && (0, _stryke_convert_to_array.toArray)(context.config.resolve.external).includes(source)) return true;
|
|
59
|
+
if (context.config.resolve.noExternal && (0, _stryke_convert_to_array.toArray)(context.config.resolve.noExternal).includes(source)) return false;
|
|
60
60
|
if (context.builtins.includes(source)) return context.config.projectType !== "application";
|
|
61
61
|
return !context.config.resolve.skipNodeModulesBundle;
|
|
62
62
|
},
|
|
@@ -65,12 +65,12 @@ function resolveOptions(context) {
|
|
|
65
65
|
check: false,
|
|
66
66
|
tsconfig: context.tsconfig.tsconfigFilePath
|
|
67
67
|
}),
|
|
68
|
-
context.config.define && Object.keys(context.config.define).length > 0 && (0,
|
|
68
|
+
context.config.define && Object.keys(context.config.define).length > 0 && (0, _rollup_plugin_replace.default)({
|
|
69
69
|
sourceMap: context.config.mode === "development",
|
|
70
70
|
preventAssignment: true,
|
|
71
71
|
...context.config.define ?? {}
|
|
72
72
|
}),
|
|
73
|
-
context.config.inject && Object.keys(context.config.inject).length > 0 && (0,
|
|
73
|
+
context.config.inject && Object.keys(context.config.inject).length > 0 && (0, _rollup_plugin_inject.default)({
|
|
74
74
|
sourceMap: context.config.mode === "development",
|
|
75
75
|
...context.config.inject
|
|
76
76
|
}),
|
|
@@ -82,7 +82,7 @@ function resolveOptions(context) {
|
|
|
82
82
|
else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
83
83
|
return ret;
|
|
84
84
|
}, []) }),
|
|
85
|
-
context.config.babel && (0,
|
|
85
|
+
context.config.babel && (0, _rollup_plugin_babel.getBabelInputPlugin)((0, defu.default)(context.config.babel, {
|
|
86
86
|
caller: {
|
|
87
87
|
name: "powerlines",
|
|
88
88
|
supportsStaticESM: true
|
|
@@ -99,11 +99,11 @@ function resolveOptions(context) {
|
|
|
99
99
|
skipPreflightCheck: true,
|
|
100
100
|
exclude: /node_modules/
|
|
101
101
|
})),
|
|
102
|
-
(0,
|
|
102
|
+
(0, _rollup_plugin_node_resolve.default)({
|
|
103
103
|
moduleDirectories: ["node_modules"],
|
|
104
104
|
preferBuiltins: true
|
|
105
105
|
}),
|
|
106
|
-
|
|
106
|
+
_powerlines_plugin_rollup_helpers_resolve_options.dtsBundlePlugin
|
|
107
107
|
]
|
|
108
108
|
}, context.config?.rolldown ? context.config?.rolldown : {}, context.config?.rollup ? context.config?.rollup : {}, {
|
|
109
109
|
resolve: {
|
|
@@ -118,8 +118,8 @@ function resolveOptions(context) {
|
|
|
118
118
|
inject: context.config.inject
|
|
119
119
|
},
|
|
120
120
|
platform: context.config.platform,
|
|
121
|
-
tsconfig: (0,
|
|
122
|
-
cache: !context.config.skipCache ? (0,
|
|
121
|
+
tsconfig: (0, _stryke_path_append.appendPath)(context.tsconfig.tsconfigFilePath, context.workspaceConfig.workspaceRoot),
|
|
122
|
+
cache: !context.config.skipCache ? (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "rolldown") : false,
|
|
123
123
|
logLevel: context.config.logLevel,
|
|
124
124
|
onLog(level, log) {
|
|
125
125
|
if (log.message?.trim()) context.log(level === "info" ? "debug" : level, log.message?.trim() ?? "");
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { RolldownOptions } from "rolldown";
|
|
2
1
|
import { Context } from "@powerlines/core";
|
|
2
|
+
import { RolldownOptions } from "rolldown";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/resolve-options.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Resolves the options for [rolldown](https://rolldown.rs).
|
|
8
7
|
*
|
|
@@ -12,4 +11,4 @@ import { Context } from "@powerlines/core";
|
|
|
12
11
|
declare function resolveOptions(context: Context): RolldownOptions;
|
|
13
12
|
//#endregion
|
|
14
13
|
export { resolveOptions as t };
|
|
15
|
-
//# sourceMappingURL=resolve-options-
|
|
14
|
+
//# sourceMappingURL=resolve-options-D0gfNbL9.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-D0gfNbL9.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8CA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,eAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Context } from "@powerlines/core";
|
|
2
1
|
import { RolldownOptions } from "rolldown";
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/resolve-options.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Resolves the options for [rolldown](https://rolldown.rs).
|
|
8
7
|
*
|
|
@@ -12,4 +11,4 @@ import { RolldownOptions } from "rolldown";
|
|
|
12
11
|
declare function resolveOptions(context: Context): RolldownOptions;
|
|
13
12
|
//#endregion
|
|
14
13
|
export { resolveOptions as t };
|
|
15
|
-
//# sourceMappingURL=resolve-options-
|
|
14
|
+
//# sourceMappingURL=resolve-options-LPLv7KEd.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-LPLv7KEd.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8CA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,eAAA"}
|
package/dist/types/build.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-
|
|
1
|
+
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-DORzWaW1.cjs";
|
|
2
2
|
export { RolldownOptions, __ΩRolldownOptions };
|
package/dist/types/build.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-
|
|
1
|
+
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-DOGZKJik.mjs";
|
|
2
2
|
export { RolldownOptions, __ΩRolldownOptions };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-
|
|
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-
|
|
3
|
-
import "../index-B_e8BwCm.cjs";
|
|
1
|
+
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-DORzWaW1.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-WveDKsQC.cjs";
|
|
4
3
|
export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownOptions, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-
|
|
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-
|
|
3
|
-
import "../index-CW2WHUXP.mjs";
|
|
1
|
+
import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-DOGZKJik.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-BzTt-GLm.mjs";
|
|
4
3
|
export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownOptions, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-WveDKsQC.cjs";
|
|
2
2
|
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import "../
|
|
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-CZtbRXfW.mjs";
|
|
1
|
+
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-BzTt-GLm.mjs";
|
|
3
2
|
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as RolldownPluginContext } from "./plugin-BzTt-GLm.mjs";
|
|
2
|
+
import * as esbuild from "esbuild";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild.Plugin;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createRolldownPlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-BpsByuTe.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-BpsByuTe.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,oBAAA,CAAqB,OAAA,EAAS,qBAAA,GAAqB,OAAA,CAAA,MAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as RolldownPluginContext } from "./plugin-WveDKsQC.cjs";
|
|
2
|
+
import * as esbuild from "esbuild";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild.Plugin;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createRolldownPlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-CsWOafoO.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-CsWOafoO.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,oBAAA,CAAqB,OAAA,EAAS,qBAAA,GAAqB,OAAA,CAAA,MAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-rolldown",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.348",
|
|
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"],
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
],
|
|
41
41
|
"type": "module",
|
|
42
42
|
"files": ["dist/**/*"],
|
|
43
|
-
"peerDependencies": { "rolldown": ">=1.0.0-rc.
|
|
43
|
+
"peerDependencies": { "rolldown": ">=1.0.0-rc.9 <2.0.0" },
|
|
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.3.0",
|
|
47
|
+
"@powerlines/plugin-babel": "^0.12.346",
|
|
48
|
+
"@powerlines/plugin-rollup": "^0.7.347",
|
|
49
49
|
"@stryke/convert": "^0.6.53",
|
|
50
50
|
"@stryke/fs": "^0.33.57",
|
|
51
51
|
"@stryke/path": "^0.26.19",
|
|
@@ -55,38 +55,39 @@
|
|
|
55
55
|
"jiti": "^2.6.1",
|
|
56
56
|
"unplugin": "^3.0.0"
|
|
57
57
|
},
|
|
58
|
-
"devDependencies": { "rolldown": "1.0.0-rc.
|
|
58
|
+
"devDependencies": { "rolldown": "1.0.0-rc.9", "@types/node": "^25.4.0" },
|
|
59
59
|
"publishConfig": { "access": "public" },
|
|
60
60
|
"main": "./dist/index.cjs",
|
|
61
61
|
"module": "./dist/index.mjs",
|
|
62
62
|
"types": "./dist/index.d.cts",
|
|
63
63
|
"exports": {
|
|
64
|
-
".": { "
|
|
64
|
+
".": { "import": "./dist/index.mjs", "require": "./dist/index.cjs" },
|
|
65
65
|
"./helpers": {
|
|
66
|
-
"
|
|
67
|
-
"
|
|
66
|
+
"import": "./dist/helpers/index.mjs",
|
|
67
|
+
"require": "./dist/helpers/index.cjs"
|
|
68
68
|
},
|
|
69
69
|
"./helpers/resolve-options": {
|
|
70
|
-
"
|
|
71
|
-
"
|
|
70
|
+
"import": "./dist/helpers/resolve-options.mjs",
|
|
71
|
+
"require": "./dist/helpers/resolve-options.cjs"
|
|
72
72
|
},
|
|
73
73
|
"./helpers/unplugin": {
|
|
74
|
-
"
|
|
75
|
-
"
|
|
74
|
+
"import": "./dist/helpers/unplugin.mjs",
|
|
75
|
+
"require": "./dist/helpers/unplugin.cjs"
|
|
76
76
|
},
|
|
77
|
+
"./resolve-options-BnM4AYul": "./dist/resolve-options-BnM4AYul.cjs",
|
|
77
78
|
"./types": {
|
|
78
|
-
"
|
|
79
|
-
"
|
|
79
|
+
"import": "./dist/types/index.mjs",
|
|
80
|
+
"require": "./dist/types/index.cjs"
|
|
80
81
|
},
|
|
81
82
|
"./types/build": {
|
|
82
|
-
"
|
|
83
|
-
"
|
|
83
|
+
"import": "./dist/types/build.mjs",
|
|
84
|
+
"require": "./dist/types/build.cjs"
|
|
84
85
|
},
|
|
85
86
|
"./types/plugin": {
|
|
86
|
-
"
|
|
87
|
-
"
|
|
87
|
+
"import": "./dist/types/plugin.mjs",
|
|
88
|
+
"require": "./dist/types/plugin.cjs"
|
|
88
89
|
},
|
|
89
90
|
"./*": "./*"
|
|
90
91
|
},
|
|
91
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "40d1f94407720be23c3801f9145fdad1fe27dfb2"
|
|
92
93
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-BD4yd_-7.d.mts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,iBAAA,GAAkB,KAC5B"}
|
package/dist/build-DJTI0ZMx.cjs
DELETED
|
File without changes
|
package/dist/build-XTM4L3VY.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-uc1j2t5S.d.cts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,iBAAA,GAAkB,KAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-CZtbRXfW.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 +0,0 @@
|
|
|
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"}
|
package/dist/plugin-D3B5E_Hg.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/plugin-D5qyQPqC.cjs
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-BAoqPP1-.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8CA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { toArray } from "@stryke/convert/to-array";
|
|
2
|
-
import defu from "defu";
|
|
3
|
-
import { dtsBundlePlugin } from "@powerlines/plugin-rollup/helpers/resolve-options";
|
|
4
|
-
import { getBabelInputPlugin } from "@rollup/plugin-babel";
|
|
5
|
-
import inject from "@rollup/plugin-inject";
|
|
6
|
-
import resolve from "@rollup/plugin-node-resolve";
|
|
7
|
-
import replace from "@rollup/plugin-replace";
|
|
8
|
-
import { appendPath } from "@stryke/path/append";
|
|
9
|
-
import { joinPaths } from "@stryke/path/join-paths";
|
|
10
|
-
import { isString } from "@stryke/type-checks/is-string";
|
|
11
|
-
import { globSync } from "node:fs";
|
|
12
|
-
import { viteAliasPlugin } from "rolldown/experimental";
|
|
13
|
-
import typescriptPlugin from "rollup-plugin-typescript2";
|
|
14
|
-
|
|
15
|
-
//#region src/helpers/resolve-options.ts
|
|
16
|
-
/**
|
|
17
|
-
* Resolves the options for [rolldown](https://rolldown.rs).
|
|
18
|
-
*
|
|
19
|
-
* @param context - The build context.
|
|
20
|
-
* @returns The resolved options.
|
|
21
|
-
*/
|
|
22
|
-
function resolveOptions(context) {
|
|
23
|
-
return defu({
|
|
24
|
-
input: globSync(toArray(context.entry).map((entry) => isString(entry) ? entry : entry.file)).flat(),
|
|
25
|
-
external: (source) => {
|
|
26
|
-
if (context.config.resolve.external && toArray(context.config.resolve.external).includes(source)) return true;
|
|
27
|
-
if (context.config.resolve.noExternal && toArray(context.config.resolve.noExternal).includes(source)) return false;
|
|
28
|
-
if (context.builtins.includes(source)) return context.config.projectType !== "application";
|
|
29
|
-
return !context.config.resolve.skipNodeModulesBundle;
|
|
30
|
-
},
|
|
31
|
-
plugins: [
|
|
32
|
-
typescriptPlugin({
|
|
33
|
-
check: false,
|
|
34
|
-
tsconfig: context.tsconfig.tsconfigFilePath
|
|
35
|
-
}),
|
|
36
|
-
context.config.define && Object.keys(context.config.define).length > 0 && replace({
|
|
37
|
-
sourceMap: context.config.mode === "development",
|
|
38
|
-
preventAssignment: true,
|
|
39
|
-
...context.config.define ?? {}
|
|
40
|
-
}),
|
|
41
|
-
context.config.inject && Object.keys(context.config.inject).length > 0 && inject({
|
|
42
|
-
sourceMap: context.config.mode === "development",
|
|
43
|
-
...context.config.inject
|
|
44
|
-
}),
|
|
45
|
-
viteAliasPlugin({ entries: Object.entries(context.alias).reduce((ret, [id, path]) => {
|
|
46
|
-
if (!ret.find((e) => e.find === id)) ret.push({
|
|
47
|
-
find: id,
|
|
48
|
-
replacement: path
|
|
49
|
-
});
|
|
50
|
-
else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
51
|
-
return ret;
|
|
52
|
-
}, []) }),
|
|
53
|
-
context.config.babel && getBabelInputPlugin(defu(context.config.babel, {
|
|
54
|
-
caller: {
|
|
55
|
-
name: "powerlines",
|
|
56
|
-
supportsStaticESM: true
|
|
57
|
-
},
|
|
58
|
-
cwd: context.config.root,
|
|
59
|
-
babelrc: false,
|
|
60
|
-
extensions: [
|
|
61
|
-
".js",
|
|
62
|
-
".jsx",
|
|
63
|
-
".ts",
|
|
64
|
-
".tsx"
|
|
65
|
-
],
|
|
66
|
-
babelHelpers: "bundled",
|
|
67
|
-
skipPreflightCheck: true,
|
|
68
|
-
exclude: /node_modules/
|
|
69
|
-
})),
|
|
70
|
-
resolve({
|
|
71
|
-
moduleDirectories: ["node_modules"],
|
|
72
|
-
preferBuiltins: true
|
|
73
|
-
}),
|
|
74
|
-
dtsBundlePlugin
|
|
75
|
-
]
|
|
76
|
-
}, context.config?.rolldown ? context.config?.rolldown : {}, context.config?.rollup ? context.config?.rollup : {}, {
|
|
77
|
-
resolve: {
|
|
78
|
-
alias: context.alias,
|
|
79
|
-
mainFields: context.config.resolve.mainFields,
|
|
80
|
-
conditions: context.config.resolve.conditions,
|
|
81
|
-
define: context.config.define,
|
|
82
|
-
extensions: context.config.resolve.extensions
|
|
83
|
-
},
|
|
84
|
-
transform: {
|
|
85
|
-
define: context.config.define,
|
|
86
|
-
inject: context.config.inject
|
|
87
|
-
},
|
|
88
|
-
platform: context.config.platform,
|
|
89
|
-
tsconfig: appendPath(context.tsconfig.tsconfigFilePath, context.workspaceConfig.workspaceRoot),
|
|
90
|
-
cache: !context.config.skipCache ? joinPaths(context.cachePath, "rolldown") : false,
|
|
91
|
-
logLevel: context.config.logLevel,
|
|
92
|
-
onLog(level, log) {
|
|
93
|
-
if (log.message?.trim()) context.log(level === "info" ? "debug" : level, log.message?.trim() ?? "");
|
|
94
|
-
},
|
|
95
|
-
minify: context.config.mode === "production",
|
|
96
|
-
output: [{
|
|
97
|
-
dir: context.config.output.buildPath,
|
|
98
|
-
format: "es",
|
|
99
|
-
preserveModules: true,
|
|
100
|
-
sourcemap: context.config.mode === "development"
|
|
101
|
-
}, {
|
|
102
|
-
dir: context.config.output.buildPath,
|
|
103
|
-
format: "cjs",
|
|
104
|
-
preserveModules: true,
|
|
105
|
-
sourcemap: context.config.mode === "development"
|
|
106
|
-
}]
|
|
107
|
-
}, {
|
|
108
|
-
keepNames: true,
|
|
109
|
-
treeshake: true,
|
|
110
|
-
shimMissingExports: true,
|
|
111
|
-
transform: { target: "esnext" }
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
//#endregion
|
|
116
|
-
export { resolveOptions as t };
|
|
117
|
-
//# sourceMappingURL=resolve-options-CzRjKLxB.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-ZAE6aktN.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8CA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createUnplugin } from "@powerlines/core/lib/unplugin";
|
|
2
|
-
import { createEsbuildPlugin } from "unplugin";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createRolldownPlugin(context) {
|
|
6
|
-
return createEsbuildPlugin(createUnplugin(context))({});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export { createRolldownPlugin as t };
|
|
11
|
-
//# sourceMappingURL=unplugin-BVk-EAp1.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-BVk-EAp1.mjs","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { RolldownPluginContext } from \"../types/plugin\";\n\nexport function createRolldownPlugin(context: RolldownPluginContext) {\n return createEsbuildPlugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgB,qBAAqB,SAAgC;AACnE,QAAO,oBAAoB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const require_resolve_options = require('./resolve-options-BP1XPpj1.cjs');
|
|
2
|
-
let __powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
3
|
-
let unplugin = require("unplugin");
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/unplugin.ts
|
|
6
|
-
function createRolldownPlugin(context) {
|
|
7
|
-
return (0, unplugin.createEsbuildPlugin)((0, __powerlines_core_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
Object.defineProperty(exports, 'createRolldownPlugin', {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () {
|
|
14
|
-
return createRolldownPlugin;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as RolldownPluginContext } from "./plugin-CZtbRXfW.mjs";
|
|
2
|
-
import * as esbuild0 from "esbuild";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createRolldownPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-DOFVgTa8.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-DOFVgTa8.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,QAAA,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as RolldownPluginContext } from "./plugin-Cc3jdTao.cjs";
|
|
2
|
-
import * as esbuild0 from "esbuild";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createRolldownPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-DjWZD0Qu.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-DjWZD0Qu.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,QAAA,CAAA"}
|