@powerlines/plugin-rspack 0.5.457 → 0.5.460

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.
Files changed (47) hide show
  1. package/dist/build-B8svWKBw.d.cts +8 -0
  2. package/dist/build-B8svWKBw.d.cts.map +1 -0
  3. package/dist/build-yAGe0Dv9.d.mts +8 -0
  4. package/dist/build-yAGe0Dv9.d.mts.map +1 -0
  5. package/dist/helpers/index.cjs +2 -2
  6. package/dist/helpers/index.d.cts +2 -2
  7. package/dist/helpers/index.d.mts +2 -2
  8. package/dist/helpers/resolve-options.cjs +2 -37
  9. package/dist/helpers/resolve-options.d.cts +2 -14
  10. package/dist/helpers/resolve-options.d.mts +2 -14
  11. package/dist/helpers/unplugin.cjs +1 -1
  12. package/dist/helpers/unplugin.d.cts +2 -8
  13. package/dist/helpers/unplugin.d.mts +2 -8
  14. package/dist/index.cjs +5 -5
  15. package/dist/index.d.cts +5 -5
  16. package/dist/index.d.mts +5 -5
  17. package/dist/index.mjs +1 -0
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/plugin-B3EYM2p9.d.mts +19 -0
  20. package/dist/plugin-B3EYM2p9.d.mts.map +1 -0
  21. package/dist/plugin-CxAN1Lu0.d.cts +19 -0
  22. package/dist/plugin-CxAN1Lu0.d.cts.map +1 -0
  23. package/dist/resolve-options-2T46cfhr.d.cts +14 -0
  24. package/dist/resolve-options-2T46cfhr.d.cts.map +1 -0
  25. package/dist/resolve-options-BDVDHrY7.d.mts +14 -0
  26. package/dist/resolve-options-BDVDHrY7.d.mts.map +1 -0
  27. package/dist/resolve-options-CJDieEiZ.cjs +75 -0
  28. package/dist/types/build.d.cts +2 -8
  29. package/dist/types/build.d.mts +2 -8
  30. package/dist/types/index.d.cts +3 -3
  31. package/dist/types/index.d.mts +3 -3
  32. package/dist/types/plugin.d.cts +2 -21
  33. package/dist/types/plugin.d.mts +2 -21
  34. package/dist/unplugin-BtVdLDiN.d.cts +8 -0
  35. package/dist/unplugin-BtVdLDiN.d.cts.map +1 -0
  36. package/dist/unplugin-DijznS91.d.mts +8 -0
  37. package/dist/unplugin-DijznS91.d.mts.map +1 -0
  38. package/package.json +11 -10
  39. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  40. package/dist/helpers/resolve-options.d.cts.map +0 -1
  41. package/dist/helpers/resolve-options.d.mts.map +0 -1
  42. package/dist/helpers/unplugin.d.cts.map +0 -1
  43. package/dist/helpers/unplugin.d.mts.map +0 -1
  44. package/dist/types/build.d.cts.map +0 -1
  45. package/dist/types/build.d.mts.map +0 -1
  46. package/dist/types/plugin.d.cts.map +0 -1
  47. package/dist/types/plugin.d.mts.map +0 -1
@@ -0,0 +1,8 @@
1
+ import { Configuration } from "@rspack/core";
2
+
3
+ //#region src/types/build.d.ts
4
+ type RspackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
5
+ declare type __ΩRspackOptions = any[];
6
+ //#endregion
7
+ export { __ΩRspackOptions as n, RspackOptions as t };
8
+ //# sourceMappingURL=build-B8svWKBw.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-B8svWKBw.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,aAAA,GAAgB,IAAA,CAC1B,aAAA;AAAA"}
@@ -0,0 +1,8 @@
1
+ import { Configuration } from "@rspack/core";
2
+
3
+ //#region src/types/build.d.ts
4
+ type RspackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
5
+ declare type __ΩRspackOptions = any[];
6
+ //#endregion
7
+ export { __ΩRspackOptions as n, RspackOptions as t };
8
+ //# sourceMappingURL=build-yAGe0Dv9.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-yAGe0Dv9.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,aAAA,GAAgB,IAAA,CAC1B,aAAA;AAAA"}
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_helpers_resolve_options = require('./resolve-options.cjs');
2
+ const require_resolve_options = require('../resolve-options-CJDieEiZ.cjs');
3
3
  const require_helpers_unplugin = require('./unplugin.cjs');
4
4
 
5
5
  exports.createRspackPlugin = require_helpers_unplugin.createRspackPlugin;
6
- exports.resolveOptions = require_helpers_resolve_options.resolveOptions;
6
+ exports.resolveOptions = require_resolve_options.resolveOptions;
@@ -1,3 +1,3 @@
1
- import { resolveOptions } from "./resolve-options.cjs";
2
- import { createRspackPlugin } from "./unplugin.cjs";
1
+ import { t as resolveOptions } from "../resolve-options-2T46cfhr.cjs";
2
+ import { t as createRspackPlugin } from "../unplugin-BtVdLDiN.cjs";
3
3
  export { createRspackPlugin, resolveOptions };
@@ -1,3 +1,3 @@
1
- import { resolveOptions } from "./resolve-options.mjs";
2
- import { createRspackPlugin } from "./unplugin.mjs";
1
+ import { t as resolveOptions } from "../resolve-options-BDVDHrY7.mjs";
2
+ import { t as createRspackPlugin } from "../unplugin-DijznS91.mjs";
3
3
  export { createRspackPlugin, resolveOptions };
@@ -1,39 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
- let defu = require("defu");
4
- defu = require_runtime.__toESM(defu, 1);
5
- let _stryke_path_join_paths = require("@stryke/path/join-paths");
2
+ const require_resolve_options = require('../resolve-options-CJDieEiZ.cjs');
6
3
 
7
- //#region src/helpers/resolve-options.ts
8
- /**
9
- * Resolves the options for [rspack](https://rspack.rs/).
10
- *
11
- * @param context - The build context.
12
- * @returns The resolved options.
13
- */
14
- function resolveOptions(context) {
15
- return (0, defu.default)({ resolve: { alias: context.alias } }, context.config.rspack ? context.config.rspack : {}, {
16
- external: context.config.resolve.external,
17
- noExternal: context.config.resolve.noExternal,
18
- skipNodeModulesBundle: context.config.resolve.skipNodeModulesBundle
19
- }, {
20
- output: { path: context.config.output.path },
21
- name: context.config.name,
22
- node: context.config.platform === "node" ? {
23
- __dirname: true,
24
- __filename: true,
25
- global: true
26
- } : false,
27
- mode: context.config.mode === "development" ? "development" : "production",
28
- recordsInputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "rspack", ".rspack-records.json"),
29
- recordsOutputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "rspack", ".rspack-records.json"),
30
- context: (0, _stryke_path_join_paths.joinPaths)(context.config.cwd, context.config.root),
31
- noExternal: context.builtins,
32
- cache: context.config.mode === "development",
33
- devtool: context.config.output.sourceMap ? "source-map" : false,
34
- optimization: { minimize: context.config.output.minify }
35
- });
36
- }
37
-
38
- //#endregion
39
- exports.resolveOptions = resolveOptions;
4
+ exports.resolveOptions = require_resolve_options.resolveOptions;
@@ -1,14 +1,2 @@
1
- import { Context } from "@powerlines/core";
2
- import { Configuration } from "@rspack/core";
3
-
4
- //#region src/helpers/resolve-options.d.ts
5
- /**
6
- * Resolves the options for [rspack](https://rspack.rs/).
7
- *
8
- * @param context - The build context.
9
- * @returns The resolved options.
10
- */
11
- declare function resolveOptions(context: Context): Configuration;
12
- //#endregion
13
- export { resolveOptions };
14
- //# sourceMappingURL=resolve-options.d.cts.map
1
+ import { t as resolveOptions } from "../resolve-options-2T46cfhr.cjs";
2
+ export { resolveOptions };
@@ -1,14 +1,2 @@
1
- import { Configuration } from "@rspack/core";
2
- import { Context } from "@powerlines/core";
3
-
4
- //#region src/helpers/resolve-options.d.ts
5
- /**
6
- * Resolves the options for [rspack](https://rspack.rs/).
7
- *
8
- * @param context - The build context.
9
- * @returns The resolved options.
10
- */
11
- declare function resolveOptions(context: Context): Configuration;
12
- //#endregion
13
- export { resolveOptions };
14
- //# sourceMappingURL=resolve-options.d.mts.map
1
+ import { t as resolveOptions } from "../resolve-options-BDVDHrY7.mjs";
2
+ export { resolveOptions };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
+ const require_resolve_options = require('../resolve-options-CJDieEiZ.cjs');
3
3
  let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
4
4
  let unplugin = require("unplugin");
5
5
 
@@ -1,8 +1,2 @@
1
- import { RspackPluginContext } from "../types/plugin.cjs";
2
- import * as _$unplugin from "unplugin";
3
-
4
- //#region src/helpers/unplugin.d.ts
5
- declare function createRspackPlugin(context: RspackPluginContext): _$unplugin.RspackPluginInstance;
6
- //#endregion
7
- export { createRspackPlugin };
8
- //# sourceMappingURL=unplugin.d.cts.map
1
+ import { t as createRspackPlugin } from "../unplugin-BtVdLDiN.cjs";
2
+ export { createRspackPlugin };
@@ -1,8 +1,2 @@
1
- import { RspackPluginContext } from "../types/plugin.mjs";
2
- import * as _$unplugin from "unplugin";
3
-
4
- //#region src/helpers/unplugin.d.ts
5
- declare function createRspackPlugin(context: RspackPluginContext): _$unplugin.RspackPluginInstance;
6
- //#endregion
7
- export { createRspackPlugin };
8
- //# sourceMappingURL=unplugin.d.mts.map
1
+ import { t as createRspackPlugin } from "../unplugin-DijznS91.mjs";
2
+ export { createRspackPlugin };
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_helpers_resolve_options = require('./helpers/resolve-options.cjs');
2
+ const require_resolve_options = require('./resolve-options-CJDieEiZ.cjs');
4
3
  const require_helpers_unplugin = require('./helpers/unplugin.cjs');
5
4
  require('./helpers/index.cjs');
5
+ require('./types/index.cjs');
6
6
  let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
7
7
  let _rspack_core = require("@rspack/core");
8
8
  let defu = require("defu");
9
- defu = require_runtime.__toESM(defu, 1);
9
+ defu = require_resolve_options.__toESM(defu, 1);
10
10
 
11
11
  //#region src/index.ts
12
12
  /**
@@ -27,7 +27,7 @@ const plugin = (options = {}) => {
27
27
  const options = (0, defu.default)({ entry: this.entry.reduce((ret, entry) => {
28
28
  ret[entry.output || entry.name || entry.file] = entry.file;
29
29
  return ret;
30
- }, {}) }, require_helpers_resolve_options.resolveOptions(this), { plugins: [require_helpers_unplugin.createRspackPlugin(this)] });
30
+ }, {}) }, require_resolve_options.resolveOptions(this), { plugins: [require_helpers_unplugin.createRspackPlugin(this)] });
31
31
  this.debug({
32
32
  meta: { category: "config" },
33
33
  message: `Resolved Rspack configuration: \n${(0, _powerlines_core_plugin_utils.formatConfig)(options)}`
@@ -41,4 +41,4 @@ const plugin = (options = {}) => {
41
41
  exports.createRspackPlugin = require_helpers_unplugin.createRspackPlugin;
42
42
  exports.default = plugin;
43
43
  exports.plugin = plugin;
44
- exports.resolveOptions = require_helpers_resolve_options.resolveOptions;
44
+ exports.resolveOptions = require_resolve_options.resolveOptions;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { resolveOptions } from "./helpers/resolve-options.cjs";
2
- import { RspackOptions, __ΩRspackOptions } from "./types/build.cjs";
3
- import { RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig } from "./types/plugin.cjs";
4
- import { createRspackPlugin } from "./helpers/unplugin.cjs";
1
+ import { t as resolveOptions } from "./resolve-options-2T46cfhr.cjs";
2
+ import { n as __ΩRspackOptions, t as RspackOptions } from "./build-B8svWKBw.cjs";
3
+ import { a as __ΩRspackPluginContext, c as __ΩRspackPluginUserConfig, i as RspackPluginUserConfig, n as RspackPluginOptions, o as __ΩRspackPluginOptions, r as RspackPluginResolvedConfig, s as __ΩRspackPluginResolvedConfig, t as RspackPluginContext } from "./plugin-CxAN1Lu0.cjs";
4
+ import { t as createRspackPlugin } from "./unplugin-BtVdLDiN.cjs";
5
5
  import { Plugin } from "@powerlines/core";
6
6
 
7
7
  //#region src/index.d.ts
@@ -10,5 +10,5 @@ import { Plugin } from "@powerlines/core";
10
10
  */
11
11
  declare const plugin: <TContext extends RspackPluginContext = RspackPluginContext>(options?: RspackPluginOptions) => Plugin<TContext>;
12
12
  //#endregion
13
- export { RspackOptions, RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackOptions, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig, createRspackPlugin, plugin as default, plugin, resolveOptions };
13
+ export { RspackOptions, RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackOptions, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig, createRspackPlugin, plugin as default, plugin, resolveOptions };
14
14
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { resolveOptions } from "./helpers/resolve-options.mjs";
2
- import { RspackOptions, __ΩRspackOptions } from "./types/build.mjs";
3
- import { RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig } from "./types/plugin.mjs";
4
- import { createRspackPlugin } from "./helpers/unplugin.mjs";
1
+ import { t as resolveOptions } from "./resolve-options-BDVDHrY7.mjs";
2
+ import { n as __ΩRspackOptions, t as RspackOptions } from "./build-yAGe0Dv9.mjs";
3
+ import { a as __ΩRspackPluginContext, c as __ΩRspackPluginUserConfig, i as RspackPluginUserConfig, n as RspackPluginOptions, o as __ΩRspackPluginOptions, r as RspackPluginResolvedConfig, s as __ΩRspackPluginResolvedConfig, t as RspackPluginContext } from "./plugin-B3EYM2p9.mjs";
4
+ import { t as createRspackPlugin } from "./unplugin-DijznS91.mjs";
5
5
  import { Plugin } from "@powerlines/core";
6
6
 
7
7
  //#region src/index.d.ts
@@ -10,5 +10,5 @@ import { Plugin } from "@powerlines/core";
10
10
  */
11
11
  declare const plugin: <TContext extends RspackPluginContext = RspackPluginContext>(options?: RspackPluginOptions) => Plugin<TContext>;
12
12
  //#endregion
13
- export { RspackOptions, RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackOptions, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig, createRspackPlugin, plugin as default, plugin, resolveOptions };
13
+ export { RspackOptions, RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackOptions, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig, createRspackPlugin, plugin as default, plugin, resolveOptions };
14
14
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { resolveOptions } from "./helpers/resolve-options.mjs";
2
2
  import { createRspackPlugin } from "./helpers/unplugin.mjs";
3
3
  import "./helpers/index.mjs";
4
+ import "./types/index.mjs";
4
5
  import { formatConfig } from "@powerlines/core/plugin-utils";
5
6
  import { rspack } from "@rspack/core";
6
7
  import defu from "defu";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"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\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport { rspack as build } from \"@rspack/core\";\nimport defu from \"defu\";\nimport { resolveOptions } from \"./helpers\";\nimport { createRspackPlugin } from \"./helpers/unplugin\";\nimport { RspackPluginContext, RspackPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends RspackPluginContext = RspackPluginContext\n>(\n options: RspackPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rspack\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `rspack` build plugin.\"\n );\n\n return {\n build: {\n ...options,\n variant: \"rspack\"\n }\n };\n },\n async build() {\n this.debug(\"Starting Rspack build process...\");\n\n const options = defu(\n {\n entry: this.entry.reduce(\n (ret, entry) => {\n ret[entry.output || entry.name || entry.file] = entry.file;\n\n return ret;\n },\n {} as Record<string, string>\n )\n },\n resolveOptions(this),\n {\n plugins: [createRspackPlugin(this)]\n }\n );\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Rspack configuration: \\n${formatConfig(options)}`\n });\n\n build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AAgCA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,4EACD;AAED,UAAO,EACL,OAAO;IACL,GAAG;IACH,SAAS;IACV,EACF;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,mCAAmC;GAE9C,MAAM,UAAU,KACd,EACE,OAAO,KAAK,MAAM,QACf,KAAK,UAAU;AACd,QAAI,MAAM,UAAU,MAAM,QAAQ,MAAM,QAAQ,MAAM;AAEtD,WAAO;MAET,EAAE,CACH,EACF,EACD,eAAe,KAAK,EACpB,EACE,SAAS,CAAC,mBAAmB,KAAK,CAAC,EACpC,CACF;AAED,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,oCAAoC,aAAa,QAAQ;IACnE,CAAC;AAEF,UAAM,QAAQ;;EAEjB"}
1
+ {"version":3,"file":"index.mjs","names":[],"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\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport { rspack as build } from \"@rspack/core\";\nimport defu from \"defu\";\nimport { resolveOptions } from \"./helpers\";\nimport { createRspackPlugin } from \"./helpers/unplugin\";\nimport { RspackPluginContext, RspackPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends RspackPluginContext = RspackPluginContext\n>(\n options: RspackPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rspack\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `rspack` build plugin.\"\n );\n\n return {\n build: {\n ...options,\n variant: \"rspack\"\n }\n };\n },\n async build() {\n this.debug(\"Starting Rspack build process...\");\n\n const options = defu(\n {\n entry: this.entry.reduce(\n (ret, entry) => {\n ret[entry.output || entry.name || entry.file] = entry.file;\n\n return ret;\n },\n {} as Record<string, string>\n )\n },\n resolveOptions(this),\n {\n plugins: [createRspackPlugin(this)]\n }\n );\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Rspack configuration: \\n${formatConfig(options)}`\n });\n\n build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAgCA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,4EACD;AAED,UAAO,EACL,OAAO;IACL,GAAG;IACH,SAAS;IACV,EACF;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,mCAAmC;GAE9C,MAAM,UAAU,KACd,EACE,OAAO,KAAK,MAAM,QACf,KAAK,UAAU;AACd,QAAI,MAAM,UAAU,MAAM,QAAQ,MAAM,QAAQ,MAAM;AAEtD,WAAO;MAET,EAAE,CACH,EACF,EACD,eAAe,KAAK,EACpB,EACE,SAAS,CAAC,mBAAmB,KAAK,CAAC,EACpC,CACF;AAED,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,oCAAoC,aAAa,QAAQ;IACnE,CAAC;AAEF,UAAM,QAAQ;;EAEjB"}
@@ -0,0 +1,19 @@
1
+ import { t as RspackOptions } from "./build-yAGe0Dv9.mjs";
2
+ import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
3
+
4
+ //#region src/types/plugin.d.ts
5
+ type RspackPluginOptions = Partial<RspackOptions>;
6
+ interface RspackPluginUserConfig extends UserConfig {
7
+ rspack?: RspackPluginOptions;
8
+ }
9
+ interface RspackPluginResolvedConfig extends ResolvedConfig {
10
+ rspack: RspackOptions;
11
+ }
12
+ type RspackPluginContext<TResolvedConfig extends RspackPluginResolvedConfig = RspackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
13
+ declare type __ΩRspackPluginOptions = any[];
14
+ declare type __ΩRspackPluginUserConfig = any[];
15
+ declare type __ΩRspackPluginResolvedConfig = any[];
16
+ declare type __ΩRspackPluginContext = any[];
17
+ //#endregion
18
+ export { __ΩRspackPluginContext as a, __ΩRspackPluginUserConfig as c, RspackPluginUserConfig as i, RspackPluginOptions as n, __ΩRspackPluginOptions as o, RspackPluginResolvedConfig as r, __ΩRspackPluginResolvedConfig as s, RspackPluginContext as t };
19
+ //# sourceMappingURL=plugin-B3EYM2p9.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-B3EYM2p9.d.mts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
@@ -0,0 +1,19 @@
1
+ import { t as RspackOptions } from "./build-B8svWKBw.cjs";
2
+ import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
3
+
4
+ //#region src/types/plugin.d.ts
5
+ type RspackPluginOptions = Partial<RspackOptions>;
6
+ interface RspackPluginUserConfig extends UserConfig {
7
+ rspack?: RspackPluginOptions;
8
+ }
9
+ interface RspackPluginResolvedConfig extends ResolvedConfig {
10
+ rspack: RspackOptions;
11
+ }
12
+ type RspackPluginContext<TResolvedConfig extends RspackPluginResolvedConfig = RspackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
13
+ declare type __ΩRspackPluginOptions = any[];
14
+ declare type __ΩRspackPluginUserConfig = any[];
15
+ declare type __ΩRspackPluginResolvedConfig = any[];
16
+ declare type __ΩRspackPluginContext = any[];
17
+ //#endregion
18
+ export { __ΩRspackPluginContext as a, __ΩRspackPluginUserConfig as c, RspackPluginUserConfig as i, RspackPluginOptions as n, __ΩRspackPluginOptions as o, RspackPluginResolvedConfig as r, __ΩRspackPluginResolvedConfig as s, RspackPluginContext as t };
19
+ //# sourceMappingURL=plugin-CxAN1Lu0.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-CxAN1Lu0.d.cts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
@@ -0,0 +1,14 @@
1
+ import { Context } from "@powerlines/core";
2
+ import { Configuration } from "@rspack/core";
3
+
4
+ //#region src/helpers/resolve-options.d.ts
5
+ /**
6
+ * Resolves the options for [rspack](https://rspack.rs/).
7
+ *
8
+ * @param context - The build context.
9
+ * @returns The resolved options.
10
+ */
11
+ declare function resolveOptions(context: Context): Configuration;
12
+ //#endregion
13
+ export { resolveOptions as t };
14
+ //# sourceMappingURL=resolve-options-2T46cfhr.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-options-2T46cfhr.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
@@ -0,0 +1,14 @@
1
+ import { Configuration } from "@rspack/core";
2
+ import { Context } from "@powerlines/core";
3
+
4
+ //#region src/helpers/resolve-options.d.ts
5
+ /**
6
+ * Resolves the options for [rspack](https://rspack.rs/).
7
+ *
8
+ * @param context - The build context.
9
+ * @returns The resolved options.
10
+ */
11
+ declare function resolveOptions(context: Context): Configuration;
12
+ //#endregion
13
+ export { resolveOptions as t };
14
+ //# sourceMappingURL=resolve-options-BDVDHrY7.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-options-BDVDHrY7.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
@@ -0,0 +1,75 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
25
+ }) : target, mod));
26
+
27
+ //#endregion
28
+ let defu = require("defu");
29
+ defu = __toESM(defu, 1);
30
+ let _stryke_path_join_paths = require("@stryke/path/join-paths");
31
+
32
+ //#region src/helpers/resolve-options.ts
33
+ /**
34
+ * Resolves the options for [rspack](https://rspack.rs/).
35
+ *
36
+ * @param context - The build context.
37
+ * @returns The resolved options.
38
+ */
39
+ function resolveOptions(context) {
40
+ return (0, defu.default)({ resolve: { alias: context.alias } }, context.config.rspack ? context.config.rspack : {}, {
41
+ external: context.config.resolve.external,
42
+ noExternal: context.config.resolve.noExternal,
43
+ skipNodeModulesBundle: context.config.resolve.skipNodeModulesBundle
44
+ }, {
45
+ output: { path: context.config.output.path },
46
+ name: context.config.name,
47
+ node: context.config.platform === "node" ? {
48
+ __dirname: true,
49
+ __filename: true,
50
+ global: true
51
+ } : false,
52
+ mode: context.config.mode === "development" ? "development" : "production",
53
+ recordsInputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "rspack", ".rspack-records.json"),
54
+ recordsOutputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "rspack", ".rspack-records.json"),
55
+ context: (0, _stryke_path_join_paths.joinPaths)(context.config.cwd, context.config.root),
56
+ noExternal: context.builtins,
57
+ cache: context.config.mode === "development",
58
+ devtool: context.config.output.sourceMap ? "source-map" : false,
59
+ optimization: { minimize: context.config.output.minify }
60
+ });
61
+ }
62
+
63
+ //#endregion
64
+ Object.defineProperty(exports, '__toESM', {
65
+ enumerable: true,
66
+ get: function () {
67
+ return __toESM;
68
+ }
69
+ });
70
+ Object.defineProperty(exports, 'resolveOptions', {
71
+ enumerable: true,
72
+ get: function () {
73
+ return resolveOptions;
74
+ }
75
+ });
@@ -1,8 +1,2 @@
1
- import { Configuration } from "@rspack/core";
2
-
3
- //#region src/types/build.d.ts
4
- type RspackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
5
- declare type __ΩRspackOptions = any[];
6
- //#endregion
7
- export { RspackOptions, __ΩRspackOptions };
8
- //# sourceMappingURL=build.d.cts.map
1
+ import { n as __ΩRspackOptions, t as RspackOptions } from "../build-B8svWKBw.cjs";
2
+ export { RspackOptions, __ΩRspackOptions };
@@ -1,8 +1,2 @@
1
- import { Configuration } from "@rspack/core";
2
-
3
- //#region src/types/build.d.ts
4
- type RspackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
5
- declare type __ΩRspackOptions = any[];
6
- //#endregion
7
- export { RspackOptions, __ΩRspackOptions };
8
- //# sourceMappingURL=build.d.mts.map
1
+ import { n as __ΩRspackOptions, t as RspackOptions } from "../build-yAGe0Dv9.mjs";
2
+ export { RspackOptions, __ΩRspackOptions };
@@ -1,3 +1,3 @@
1
- import { RspackOptions, __ΩRspackOptions } from "./build.cjs";
2
- import { RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig } from "./plugin.cjs";
3
- export { RspackOptions, RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackOptions, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig };
1
+ import { n as __ΩRspackOptions, t as RspackOptions } from "../build-B8svWKBw.cjs";
2
+ import { a as __ΩRspackPluginContext, c as __ΩRspackPluginUserConfig, i as RspackPluginUserConfig, n as RspackPluginOptions, o as __ΩRspackPluginOptions, r as RspackPluginResolvedConfig, s as __ΩRspackPluginResolvedConfig, t as RspackPluginContext } from "../plugin-CxAN1Lu0.cjs";
3
+ export { RspackOptions, RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackOptions, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig };
@@ -1,3 +1,3 @@
1
- import { RspackOptions, __ΩRspackOptions } from "./build.mjs";
2
- import { RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig } from "./plugin.mjs";
3
- export { RspackOptions, RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackOptions, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig };
1
+ import { n as __ΩRspackOptions, t as RspackOptions } from "../build-yAGe0Dv9.mjs";
2
+ import { a as __ΩRspackPluginContext, c as __ΩRspackPluginUserConfig, i as RspackPluginUserConfig, n as RspackPluginOptions, o as __ΩRspackPluginOptions, r as RspackPluginResolvedConfig, s as __ΩRspackPluginResolvedConfig, t as RspackPluginContext } from "../plugin-B3EYM2p9.mjs";
3
+ export { RspackOptions, RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackOptions, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig };
@@ -1,21 +1,2 @@
1
- import { RspackOptions } from "./build.cjs";
2
- import { InitialPluginConfig, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
3
-
4
- //#region src/types/plugin.d.ts
5
- type RspackPluginOptions = Partial<RspackOptions>;
6
- interface RspackPluginUserConfig extends UserConfig {
7
- rspack?: RspackPluginOptions;
8
- }
9
- type RspackPluginInitialConfig = InitialPluginConfig<RspackPluginUserConfig>;
10
- interface RspackPluginResolvedConfig extends ResolvedConfig {
11
- rspack: RspackOptions;
12
- }
13
- type RspackPluginContext<TResolvedConfig extends RspackPluginResolvedConfig = RspackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
14
- declare type __ΩRspackPluginOptions = any[];
15
- declare type __ΩRspackPluginUserConfig = any[];
16
- declare type __ΩRspackPluginInitialConfig = any[];
17
- declare type __ΩRspackPluginResolvedConfig = any[];
18
- declare type __ΩRspackPluginContext = any[];
19
- //#endregion
20
- export { RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig };
21
- //# sourceMappingURL=plugin.d.cts.map
1
+ import { a as __ΩRspackPluginContext, c as __ΩRspackPluginUserConfig, i as RspackPluginUserConfig, n as RspackPluginOptions, o as __ΩRspackPluginOptions, r as RspackPluginResolvedConfig, s as __ΩRspackPluginResolvedConfig, t as RspackPluginContext } from "../plugin-CxAN1Lu0.cjs";
2
+ export { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig };
@@ -1,21 +1,2 @@
1
- import { RspackOptions } from "./build.mjs";
2
- import { InitialPluginConfig, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
3
-
4
- //#region src/types/plugin.d.ts
5
- type RspackPluginOptions = Partial<RspackOptions>;
6
- interface RspackPluginUserConfig extends UserConfig {
7
- rspack?: RspackPluginOptions;
8
- }
9
- type RspackPluginInitialConfig = InitialPluginConfig<RspackPluginUserConfig>;
10
- interface RspackPluginResolvedConfig extends ResolvedConfig {
11
- rspack: RspackOptions;
12
- }
13
- type RspackPluginContext<TResolvedConfig extends RspackPluginResolvedConfig = RspackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
14
- declare type __ΩRspackPluginOptions = any[];
15
- declare type __ΩRspackPluginUserConfig = any[];
16
- declare type __ΩRspackPluginInitialConfig = any[];
17
- declare type __ΩRspackPluginResolvedConfig = any[];
18
- declare type __ΩRspackPluginContext = any[];
19
- //#endregion
20
- export { RspackPluginContext, RspackPluginInitialConfig, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackPluginContext, __ΩRspackPluginInitialConfig, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig };
21
- //# sourceMappingURL=plugin.d.mts.map
1
+ import { a as __ΩRspackPluginContext, c as __ΩRspackPluginUserConfig, i as RspackPluginUserConfig, n as RspackPluginOptions, o as __ΩRspackPluginOptions, r as RspackPluginResolvedConfig, s as __ΩRspackPluginResolvedConfig, t as RspackPluginContext } from "../plugin-B3EYM2p9.mjs";
2
+ export { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, RspackPluginUserConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig, __ΩRspackPluginUserConfig };
@@ -0,0 +1,8 @@
1
+ import { t as RspackPluginContext } from "./plugin-CxAN1Lu0.cjs";
2
+ import * as _$unplugin from "unplugin";
3
+
4
+ //#region src/helpers/unplugin.d.ts
5
+ declare function createRspackPlugin(context: RspackPluginContext): _$unplugin.RspackPluginInstance;
6
+ //#endregion
7
+ export { createRspackPlugin as t };
8
+ //# sourceMappingURL=unplugin-BtVdLDiN.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-BtVdLDiN.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,kBAAA,CAAmB,OAAA,EAAS,mBAAA,GAAmB,UAAA,CAAA,oBAAA"}
@@ -0,0 +1,8 @@
1
+ import { t as RspackPluginContext } from "./plugin-B3EYM2p9.mjs";
2
+ import * as _$unplugin from "unplugin";
3
+
4
+ //#region src/helpers/unplugin.d.ts
5
+ declare function createRspackPlugin$1(context: RspackPluginContext): _$unplugin.RspackPluginInstance;
6
+ //#endregion
7
+ export { createRspackPlugin$1 as t };
8
+ //# sourceMappingURL=unplugin-DijznS91.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-DijznS91.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,oBAAA,CAAmB,OAAA,EAAS,mBAAA,GAAmB,UAAA,CAAA,oBAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-rspack",
3
- "version": "0.5.457",
3
+ "version": "0.5.460",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to build projects using Webpack.",
6
6
  "keywords": ["rspack", "powerlines", "storm-software", "powerlines-plugin"],
@@ -12,7 +12,7 @@
12
12
  "repository": {
13
13
  "type": "github",
14
14
  "url": "https://github.com/storm-software/powerlines.git",
15
- "directory": "packages/plugin-rspack"
15
+ "directory": "packages/plugins/plugin-rspack"
16
16
  },
17
17
  "funding": {
18
18
  "type": "github",
@@ -71,16 +71,17 @@
71
71
  "module": "./dist/index.mjs",
72
72
  "types": "./dist/index.d.cts",
73
73
  "typings": "dist/index.d.mts",
74
- "files": ["dist/**/*"],
75
- "peerDependencies": { "@rspack/core": ">=1.5.0" },
76
- "peerDependenciesMeta": { "@rspack/core": { "optional": false } },
74
+ "files": ["dist"],
77
75
  "dependencies": {
78
- "@powerlines/core": "^0.47.2",
79
- "@stryke/helpers": "^0.10.12",
80
- "@stryke/path": "^0.28.2",
76
+ "@powerlines/core": "^0.9.2",
77
+ "@powerlines/unplugin": "^0.0.4",
78
+ "@stryke/helpers": "^0.10.15",
79
+ "@stryke/path": "^0.29.2",
81
80
  "defu": "^6.1.7"
82
81
  },
83
- "devDependencies": { "@rspack/core": "^1.7.11", "@types/node": "^25.6.0" },
82
+ "devDependencies": { "@rspack/core": "^1.7.11", "@types/node": "^25.7.0" },
83
+ "peerDependencies": { "@rspack/core": ">=1.5.0" },
84
+ "peerDependenciesMeta": { "@rspack/core": { "optional": false } },
84
85
  "publishConfig": { "access": "public" },
85
- "gitHead": "76fde74fd0b494596135ace273dd0d0072b7b8be"
86
+ "gitHead": "3c5c701e16af74006dd70b965009d41eb22ace2a"
86
87
  }
@@ -1,29 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
-
29
- exports.__toESM = __toESM;
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-options.d.cts","names":[],"sources":["../../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-options.d.mts","names":[],"sources":["../../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,kBAAA,CAAmB,OAAA,EAAS,mBAAA,GAAmB,UAAA,CAAA,oBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,kBAAA,CAAmB,OAAA,EAAS,mBAAA,GAAmB,UAAA,CAAA,oBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.d.cts","names":[],"sources":["../../src/types/build.ts"],"mappings":";;;KAoBY,aAAA,GAAgB,IAAA,CAC1B,aAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.d.mts","names":[],"sources":["../../src/types/build.ts"],"mappings":";;;KAoBY,aAAA,GAAgB,IAAA,CAC1B,aAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KA0BY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,KAGC,yBAAA,GACV,mBAAA,CAAoB,sBAAA;AAAA,UAEL,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KA0BY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,KAGC,yBAAA,GACV,mBAAA,CAAoB,sBAAA;AAAA,UAEL,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}