@powerlines/plugin-rolldown 0.7.190 → 0.7.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/index.cjs +3 -0
- package/dist/{packages/plugin-rolldown/src/helpers → helpers}/unplugin.cjs +1 -1
- package/dist/{src/index.cjs → index.cjs} +5 -5
- package/dist/{src/index.d.cts → index.d.cts} +3 -3
- package/dist/{src/index.d.mts → index.d.mts} +5 -5
- package/dist/{src/index.mjs → index.mjs} +2 -2
- package/dist/{packages/plugin-rolldown/src/types → types}/plugin.d.cts +3 -3
- package/dist/{packages/plugin-rolldown/src/types → types}/plugin.d.mts +3 -3
- package/package.json +4 -4
- package/dist/packages/plugin-rolldown/src/helpers/index.cjs +0 -3
- /package/dist/{packages/plugin-rolldown/src/helpers → helpers}/index.d.cts +0 -0
- /package/dist/{packages/plugin-rolldown/src/helpers → helpers}/index.d.mts +0 -0
- /package/dist/{packages/plugin-rolldown/src/helpers → helpers}/index.mjs +0 -0
- /package/dist/{packages/plugin-rolldown/src/helpers → helpers}/unplugin.d.cts +0 -0
- /package/dist/{packages/plugin-rolldown/src/helpers → helpers}/unplugin.d.mts +0 -0
- /package/dist/{packages/plugin-rolldown/src/helpers → helpers}/unplugin.mjs +0 -0
- /package/dist/{packages/plugin-rolldown/src/types → types}/index.cjs +0 -0
- /package/dist/{packages/plugin-rolldown/src/types → types}/index.d.cts +0 -0
- /package/dist/{packages/plugin-rolldown/src/types → types}/index.d.mts +0 -0
- /package/dist/{packages/plugin-rolldown/src/types → types}/index.mjs +0 -0
- /package/dist/{packages/plugin-rolldown/src/types → types}/plugin.cjs +0 -0
- /package/dist/{packages/plugin-rolldown/src/types → types}/plugin.mjs +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
3
3
|
let unplugin = require("unplugin");
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_rolldown_runtime = require('
|
|
3
|
-
const
|
|
4
|
-
require('
|
|
2
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_helpers_unplugin = require('./helpers/unplugin.cjs');
|
|
4
|
+
require('./helpers/index.cjs');
|
|
5
5
|
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
6
6
|
let defu = require("defu");
|
|
7
7
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
@@ -25,7 +25,7 @@ const plugin = (options = {}) => {
|
|
|
25
25
|
};
|
|
26
26
|
},
|
|
27
27
|
async build() {
|
|
28
|
-
const result = await (0, rolldown.rolldown)((0, defu.default)({ plugins: [
|
|
28
|
+
const result = await (0, rolldown.rolldown)((0, defu.default)({ plugins: [require_helpers_unplugin.createRolldownPlugin(this)] }, (0, powerlines_lib_build_rolldown.extractRolldownConfig)(this)));
|
|
29
29
|
await Promise.all((0, __stryke_convert_to_array.toArray)(this.config.output.format).map(async (format) => result.write({ format })));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
@@ -33,6 +33,6 @@ const plugin = (options = {}) => {
|
|
|
33
33
|
var src_default = plugin;
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
|
-
exports.createRolldownPlugin =
|
|
36
|
+
exports.createRolldownPlugin = require_helpers_unplugin.createRolldownPlugin;
|
|
37
37
|
exports.default = src_default;
|
|
38
38
|
exports.plugin = plugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Plugin } from "
|
|
2
|
-
import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig } from "
|
|
3
|
-
import { createRolldownPlugin } from "
|
|
1
|
+
import { Plugin } from "./powerlines/src/types/plugin.cjs";
|
|
2
|
+
import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig } from "./types/plugin.cjs";
|
|
3
|
+
import { createRolldownPlugin } from "./helpers/unplugin.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Plugin } from "
|
|
2
|
-
import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig } from "
|
|
3
|
-
import { createRolldownPlugin } from "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
1
|
+
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
|
+
import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig } from "./types/plugin.mjs";
|
|
3
|
+
import { createRolldownPlugin } from "./helpers/unplugin.mjs";
|
|
4
|
+
import "./helpers/index.mjs";
|
|
5
|
+
import "./types/index.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRolldownPlugin } from "
|
|
2
|
-
import "
|
|
1
|
+
import { createRolldownPlugin } from "./helpers/unplugin.mjs";
|
|
2
|
+
import "./helpers/index.mjs";
|
|
3
3
|
import { toArray } from "@stryke/convert/to-array";
|
|
4
4
|
import defu from "defu";
|
|
5
5
|
import { extractRolldownConfig } from "powerlines/lib/build/rolldown";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RolldownBuildConfig } from "
|
|
2
|
-
import { RolldownResolvedConfig } from "
|
|
3
|
-
import { PluginContext } from "
|
|
1
|
+
import { RolldownBuildConfig } from "../powerlines/src/types/build.cjs";
|
|
2
|
+
import { RolldownResolvedConfig } from "../powerlines/src/types/resolved.cjs";
|
|
3
|
+
import { PluginContext } from "../powerlines/src/types/context.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/types/plugin.d.ts
|
|
6
6
|
type RolldownPluginOptions = Partial<RolldownBuildConfig>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RolldownBuildConfig } from "
|
|
2
|
-
import { RolldownResolvedConfig } from "
|
|
3
|
-
import { PluginContext } from "
|
|
1
|
+
import { RolldownBuildConfig } from "../powerlines/src/types/build.mjs";
|
|
2
|
+
import { RolldownResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
|
+
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/types/plugin.d.ts
|
|
6
6
|
type RolldownPluginOptions = Partial<RolldownBuildConfig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-rolldown",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.191",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -152,14 +152,14 @@
|
|
|
152
152
|
"@stryke/types": "^0.10.33",
|
|
153
153
|
"defu": "^6.1.4",
|
|
154
154
|
"jiti": "^2.6.1",
|
|
155
|
-
"powerlines": "^0.37.
|
|
155
|
+
"powerlines": "^0.37.55",
|
|
156
156
|
"rolldown": "1.0.0-beta.53",
|
|
157
157
|
"unplugin": "3.0.0-beta.3"
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
160
|
+
"@powerlines/plugin-plugin": "^0.12.133",
|
|
161
161
|
"@types/node": "^24.10.9"
|
|
162
162
|
},
|
|
163
163
|
"publishConfig": { "access": "public" },
|
|
164
|
-
"gitHead": "
|
|
164
|
+
"gitHead": "5c6a45da350207ae49328ff5a6330415e872a319"
|
|
165
165
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|