@powerlines/plugin-rspack 0.5.168 → 0.5.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/index.cjs +1 -3
- package/dist/helpers/index.d.mts +1 -2
- package/dist/helpers/index.mjs +1 -1
- package/dist/helpers/unplugin.cjs +2 -2
- package/dist/helpers/unplugin.mjs +4 -4
- package/dist/index.cjs +3 -3
- package/dist/packages/powerlines/src/internal/helpers/hooks.d.mts +1 -1
- package/dist/packages/powerlines/src/types/api.d.mts +3 -3
- package/dist/packages/powerlines/src/types/build.d.mts +1 -1
- package/dist/packages/powerlines/src/types/commands.d.mts +1 -1
- package/dist/packages/powerlines/src/types/config.d.mts +5 -5
- package/dist/packages/powerlines/src/types/context.d.mts +4 -4
- package/dist/packages/powerlines/src/types/hooks.d.mts +1 -1
- package/dist/packages/powerlines/src/types/plugin.d.mts +6 -6
- package/dist/packages/powerlines/src/types/resolved.d.mts +1 -1
- package/dist/packages/powerlines/src/types/unplugin.d.mts +3 -3
- package/dist/powerlines/src/types/api.d.cts +3 -3
- package/dist/powerlines/src/types/build.d.cts +1 -1
- package/dist/powerlines/src/types/commands.d.cts +1 -1
- package/dist/powerlines/src/types/config.d.cts +5 -5
- package/dist/powerlines/src/types/context.d.cts +4 -4
- package/dist/powerlines/src/types/hooks.d.cts +1 -1
- package/dist/powerlines/src/types/plugin.d.cts +6 -6
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/unplugin.d.cts +2 -2
- package/dist/types/index.d.mts +1 -2
- package/package.json +8 -8
- package/dist/helpers/index.d.cts +0 -2
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -2
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.mjs +0 -1
package/dist/helpers/index.cjs
CHANGED
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import { createRspackPlugin } from "./unplugin.mjs";
|
|
2
|
-
export { createRspackPlugin };
|
|
1
|
+
import { createRspackPlugin } from "./unplugin.mjs";
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -3,9 +3,9 @@ const require_index = require('../node_modules/.pnpm/unplugin@3.0.0-beta.3/node_
|
|
|
3
3
|
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
4
4
|
|
|
5
5
|
//#region src/helpers/unplugin.ts
|
|
6
|
-
function createRspackPlugin(context) {
|
|
6
|
+
function createRspackPlugin$1(context) {
|
|
7
7
|
return require_index.createRspackPlugin((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
|
-
exports.createRspackPlugin = createRspackPlugin;
|
|
11
|
+
exports.createRspackPlugin = createRspackPlugin$1;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createRspackPlugin
|
|
1
|
+
import { createRspackPlugin } from "../node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.mjs";
|
|
2
2
|
import { createUnplugin } from "powerlines/lib/unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createRspackPlugin(context) {
|
|
6
|
-
return createRspackPlugin
|
|
5
|
+
function createRspackPlugin$1(context) {
|
|
6
|
+
return createRspackPlugin(createUnplugin(context))({});
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
|
-
export { createRspackPlugin };
|
|
10
|
+
export { createRspackPlugin$1 as createRspackPlugin };
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
3
|
const require_chunk_POXTJ6GF = require('./node_modules/.pnpm/@storm-software_config-tools@1.188.80_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs');
|
|
4
|
-
const
|
|
4
|
+
const require_unplugin = require('./helpers/unplugin.cjs');
|
|
5
5
|
require('./helpers/index.cjs');
|
|
6
6
|
let __rspack_core = require("@rspack/core");
|
|
7
7
|
let defu = require("defu");
|
|
@@ -26,13 +26,13 @@ const plugin = (options = {}) => {
|
|
|
26
26
|
(0, __rspack_core.rspack)((0, defu.default)({ entry: this.entry.reduce((ret, entry) => {
|
|
27
27
|
ret[entry.output || entry.name || entry.file] = entry.file;
|
|
28
28
|
return ret;
|
|
29
|
-
}, {}) }, (0, powerlines_lib_build_rspack.extractRspackConfig)(this), { plugins: [
|
|
29
|
+
}, {}) }, (0, powerlines_lib_build_rspack.extractRspackConfig)(this), { plugins: [require_unplugin.createRspackPlugin(this)] }));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
var src_default = plugin;
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
|
-
exports.createRspackPlugin =
|
|
36
|
+
exports.createRspackPlugin = require_unplugin.createRspackPlugin;
|
|
37
37
|
exports.default = src_default;
|
|
38
38
|
exports.plugin = plugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ResolvedConfig } from "./resolved.mjs";
|
|
2
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
|
-
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
4
1
|
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.mjs";
|
|
2
|
+
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
|
+
import { ResolvedConfig } from "./resolved.mjs";
|
|
5
4
|
import { APIContext, EnvironmentContext, PluginContext } from "./context.mjs";
|
|
5
|
+
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Configuration } from "@rspack/core";
|
|
2
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
2
3
|
import { UserConfig } from "@farmfe/core";
|
|
3
4
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
4
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
5
6
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
6
7
|
import { RolldownOptions } from "rolldown";
|
|
7
|
-
import { OutputOptions, RollupOptions } from "rollup";
|
|
8
8
|
import { UserConfig as UserConfig$1 } from "tsdown";
|
|
9
9
|
import { DepOptimizationOptions, UserConfig as UserConfig$2 } from "vite";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./context.mjs";
|
|
2
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
3
2
|
import { ArrayValues } from "@stryke/types/array";
|
|
3
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
4
4
|
|
|
5
5
|
//#region ../powerlines/src/types/commands.d.ts
|
|
6
6
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
2
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
3
|
-
import { Plugin } from "./plugin.mjs";
|
|
4
3
|
import { TSConfig } from "./tsconfig.mjs";
|
|
5
4
|
import { PluginContext } from "./context.mjs";
|
|
6
|
-
import {
|
|
5
|
+
import { Plugin } from "./plugin.mjs";
|
|
7
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
|
+
import { PreviewOptions } from "vite";
|
|
8
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
9
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
@@ -297,14 +297,14 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
297
297
|
*/
|
|
298
298
|
configFile?: string;
|
|
299
299
|
/**
|
|
300
|
-
* Should the Powerlines
|
|
300
|
+
* Should the Powerlines processes automatically install missing package dependencies?
|
|
301
301
|
*
|
|
302
302
|
* @remarks
|
|
303
|
-
* This
|
|
303
|
+
* When set to `true`, Powerlines will attempt to install any missing dependencies using the package manager detected in the project (e.g., npm, yarn, pnpm). This can be useful for ensuring that all required packages are available during the build and preparation phases.
|
|
304
304
|
*
|
|
305
305
|
* @defaultValue false
|
|
306
306
|
*/
|
|
307
|
-
|
|
307
|
+
autoInstall?: boolean;
|
|
308
308
|
/**
|
|
309
309
|
* Should the compiler processes skip any improvements that make use of cache?
|
|
310
310
|
*
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
3
|
-
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
4
|
-
import { Plugin } from "./plugin.mjs";
|
|
5
2
|
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
6
3
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
4
|
+
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
6
|
+
import { Plugin } from "./plugin.mjs";
|
|
7
|
+
import { NonUndefined } from "@stryke/types/base";
|
|
7
8
|
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
8
9
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
9
10
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
10
|
-
import { NonUndefined } from "@stryke/types/base";
|
|
11
11
|
import { PackageJson } from "@stryke/types/package-json";
|
|
12
12
|
import { Jiti } from "jiti";
|
|
13
13
|
import { SourceMap } from "magic-string";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.mjs";
|
|
2
|
-
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
3
2
|
import { PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
3
|
+
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
|
-
import { CommandType } from "./commands.mjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
4
|
-
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
5
2
|
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
6
4
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
5
|
+
import { CommandType } from "./commands.mjs";
|
|
6
|
+
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
10
7
|
import { ArrayValues } from "@stryke/types/array";
|
|
8
|
+
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
9
|
+
import { LoadResult } from "rollup";
|
|
10
|
+
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
2
|
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
|
|
3
|
-
import { ResolvedPreviewOptions } from "vite";
|
|
4
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
|
+
import { ResolvedPreviewOptions } from "vite";
|
|
5
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
6
6
|
import { AssetGlob } from "@stryke/types/file";
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
|
|
2
|
+
import "./config.mjs";
|
|
2
3
|
import { InferResolvedConfig } from "./resolved.mjs";
|
|
4
|
+
import { Context } from "./context.mjs";
|
|
3
5
|
import { API } from "./api.mjs";
|
|
4
6
|
import { PluginHook } from "./plugin.mjs";
|
|
5
|
-
import "./config.mjs";
|
|
6
|
-
import { Context } from "./context.mjs";
|
|
7
|
-
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
8
7
|
import { MaybePromise } from "@stryke/types/base";
|
|
8
|
+
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
9
9
|
|
|
10
10
|
//#region ../powerlines/src/types/unplugin.d.ts
|
|
11
11
|
interface UnpluginOptions$1<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> extends UnpluginOptions {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ResolvedConfig } from "./resolved.cjs";
|
|
2
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
|
-
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
4
1
|
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.cjs";
|
|
2
|
+
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
|
+
import { ResolvedConfig } from "./resolved.cjs";
|
|
5
4
|
import { APIContext, EnvironmentContext, PluginContext } from "./context.cjs";
|
|
5
|
+
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
1
2
|
import { UserConfig } from "@farmfe/core";
|
|
2
3
|
import { Configuration } from "@rspack/core";
|
|
3
4
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
4
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
5
6
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
6
7
|
import { RolldownOptions } from "rolldown";
|
|
7
|
-
import { OutputOptions, RollupOptions } from "rollup";
|
|
8
8
|
import { UserConfig as UserConfig$1 } from "tsdown";
|
|
9
9
|
import { DepOptimizationOptions, UserConfig as UserConfig$2 } from "vite";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
2
1
|
import { ArrayValues } from "@stryke/types/array";
|
|
2
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
3
3
|
|
|
4
4
|
//#region ../powerlines/src/types/commands.d.ts
|
|
5
5
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.cjs";
|
|
2
2
|
import { StoragePort, StoragePreset } from "./fs.cjs";
|
|
3
|
-
import { Plugin } from "./plugin.cjs";
|
|
4
3
|
import { TSConfig } from "./tsconfig.cjs";
|
|
5
4
|
import { PluginContext } from "./context.cjs";
|
|
6
|
-
import {
|
|
5
|
+
import { Plugin } from "./plugin.cjs";
|
|
7
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
|
+
import { PreviewOptions } from "vite";
|
|
8
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
9
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
@@ -297,14 +297,14 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
297
297
|
*/
|
|
298
298
|
configFile?: string;
|
|
299
299
|
/**
|
|
300
|
-
* Should the Powerlines
|
|
300
|
+
* Should the Powerlines processes automatically install missing package dependencies?
|
|
301
301
|
*
|
|
302
302
|
* @remarks
|
|
303
|
-
* This
|
|
303
|
+
* When set to `true`, Powerlines will attempt to install any missing dependencies using the package manager detected in the project (e.g., npm, yarn, pnpm). This can be useful for ensuring that all required packages are available during the build and preparation phases.
|
|
304
304
|
*
|
|
305
305
|
* @defaultValue false
|
|
306
306
|
*/
|
|
307
|
-
|
|
307
|
+
autoInstall?: boolean;
|
|
308
308
|
/**
|
|
309
309
|
* Should the compiler processes skip any improvements that make use of cache?
|
|
310
310
|
*
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.cjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
3
|
-
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
4
|
-
import { Plugin } from "./plugin.cjs";
|
|
5
2
|
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
6
3
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
4
|
+
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
6
|
+
import { Plugin } from "./plugin.cjs";
|
|
7
|
+
import { NonUndefined } from "@stryke/types/base";
|
|
7
8
|
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
8
9
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
9
10
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
10
|
-
import { NonUndefined } from "@stryke/types/base";
|
|
11
11
|
import { PackageJson } from "@stryke/types/package-json";
|
|
12
12
|
import { Jiti } from "jiti";
|
|
13
13
|
import { SourceMap } from "magic-string";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.cjs";
|
|
2
|
-
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.cjs";
|
|
3
2
|
import { PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
3
|
+
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.cjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
|
-
import { CommandType } from "./commands.cjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
4
|
-
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
5
2
|
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
6
4
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
5
|
+
import { CommandType } from "./commands.cjs";
|
|
6
|
+
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
10
7
|
import { ArrayValues } from "@stryke/types/array";
|
|
8
|
+
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
9
|
+
import { LoadResult } from "rollup";
|
|
10
|
+
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
2
|
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
|
|
3
|
-
import { ResolvedPreviewOptions } from "vite";
|
|
4
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
|
+
import { ResolvedPreviewOptions } from "vite";
|
|
5
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
6
6
|
import { AssetGlob } from "@stryke/types/file";
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.cjs";
|
|
2
2
|
import { InferResolvedConfig } from "./resolved.cjs";
|
|
3
|
+
import { Context } from "./context.cjs";
|
|
3
4
|
import { API } from "./api.cjs";
|
|
4
5
|
import { PluginHook } from "./plugin.cjs";
|
|
5
|
-
import { Context } from "./context.cjs";
|
|
6
|
-
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
7
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
|
+
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
8
8
|
|
|
9
9
|
//#region ../powerlines/src/types/unplugin.d.ts
|
|
10
10
|
interface UnpluginOptions$1<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> extends UnpluginOptions {
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "./plugin.mjs";
|
|
2
|
-
export { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig };
|
|
1
|
+
import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "./plugin.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-rspack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.170",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using Webpack.",
|
|
6
6
|
"repository": {
|
|
@@ -146,18 +146,18 @@
|
|
|
146
146
|
"keywords": ["rspack", "powerlines", "storm-software", "powerlines-plugin"],
|
|
147
147
|
"dependencies": {
|
|
148
148
|
"@rspack/core": "^1.7.2",
|
|
149
|
-
"@stryke/fs": "^0.33.
|
|
150
|
-
"@stryke/path": "^0.24.
|
|
151
|
-
"@stryke/type-checks": "^0.5.
|
|
152
|
-
"@stryke/types": "^0.10.
|
|
149
|
+
"@stryke/fs": "^0.33.30",
|
|
150
|
+
"@stryke/path": "^0.24.3",
|
|
151
|
+
"@stryke/type-checks": "^0.5.17",
|
|
152
|
+
"@stryke/types": "^0.10.31",
|
|
153
153
|
"defu": "^6.1.4",
|
|
154
154
|
"jiti": "^2.6.1",
|
|
155
|
-
"powerlines": "^0.37.
|
|
155
|
+
"powerlines": "^0.37.35"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
158
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
158
|
+
"@powerlines/plugin-plugin": "^0.12.113",
|
|
159
159
|
"@types/node": "^24.10.8"
|
|
160
160
|
},
|
|
161
161
|
"publishConfig": { "access": "public" },
|
|
162
|
-
"gitHead": "
|
|
162
|
+
"gitHead": "65656903e05b8a85e4d46f7449a8c2bd8f90332e"
|
|
163
163
|
}
|
package/dist/helpers/index.d.cts
DELETED
package/dist/types/index.cjs
DELETED
|
File without changes
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "./plugin.cjs";
|
|
2
|
-
export { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig };
|
package/dist/types/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types/plugin.cjs
DELETED
|
File without changes
|
package/dist/types/plugin.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|