@powerlines/plugin-react 0.1.142 → 0.1.144

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 (123) hide show
  1. package/dist/components/react-optimized.cjs +7 -7
  2. package/dist/components/react-optimized.mjs +4 -4
  3. package/dist/index.cjs +13 -11
  4. package/dist/index.mjs +6 -6
  5. package/dist/plugin-alloy/src/types/components.d.mts +1 -1
  6. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +1 -1
  7. package/dist/plugin-env/src/types/plugin.d.mts +1 -1
  8. package/dist/powerlines/src/types/build.d.mts +6 -6
  9. package/dist/powerlines/src/types/config.d.mts +1 -2
  10. package/dist/powerlines/src/types/context.d.cts +1 -1
  11. package/dist/powerlines/src/types/context.d.mts +1 -1
  12. package/dist/powerlines/src/types/tsconfig.d.mts +1 -1
  13. package/package.json +9 -10
  14. package/dist/deepkit/schemas/reflection.cjs +0 -3940
  15. package/dist/deepkit/schemas/reflection.mjs +0 -3938
  16. package/dist/deepkit/schemas/reflection2.cjs +0 -4112
  17. package/dist/deepkit/schemas/reflection2.mjs +0 -4110
  18. package/dist/deepkit/src/capnp.cjs +0 -913
  19. package/dist/deepkit/src/capnp.mjs +0 -911
  20. package/dist/deepkit/src/esbuild-plugin.cjs +0 -47
  21. package/dist/deepkit/src/esbuild-plugin.mjs +0 -46
  22. package/dist/deepkit/src/reflect-type.cjs +0 -22
  23. package/dist/deepkit/src/reflect-type.mjs +0 -20
  24. package/dist/deepkit/src/resolve-reflections.cjs +0 -16
  25. package/dist/deepkit/src/resolve-reflections.mjs +0 -15
  26. package/dist/deepkit/src/transformer.cjs +0 -52
  27. package/dist/deepkit/src/transformer.mjs +0 -49
  28. package/dist/deepkit/src/transpile.cjs +0 -29
  29. package/dist/deepkit/src/transpile.mjs +0 -27
  30. package/dist/deepkit/src/utilities.cjs +0 -66
  31. package/dist/deepkit/src/utilities.mjs +0 -65
  32. package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
  33. package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
  34. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
  35. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
  36. package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
  37. package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
  38. package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -60
  39. package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -54
  40. package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
  41. package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
  42. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -46
  43. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -42
  44. package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -16
  45. package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -15
  46. package/dist/plugin-alloy/src/index.cjs +0 -106
  47. package/dist/plugin-alloy/src/index.mjs +0 -104
  48. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -7
  49. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -9
  50. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -5
  51. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -7
  52. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -17
  53. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -17
  54. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
  55. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
  56. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
  57. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
  58. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
  59. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
  60. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
  61. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
  62. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
  63. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
  64. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
  65. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
  66. package/dist/plugin-automd/src/index.cjs +0 -101
  67. package/dist/plugin-automd/src/index.mjs +0 -98
  68. package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -10
  69. package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -9
  70. package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -41
  71. package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -39
  72. package/dist/plugin-babel/src/helpers/filters.cjs +0 -23
  73. package/dist/plugin-babel/src/helpers/filters.mjs +0 -21
  74. package/dist/plugin-babel/src/helpers/index.cjs +0 -5
  75. package/dist/plugin-babel/src/helpers/index.mjs +0 -7
  76. package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -38
  77. package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -35
  78. package/dist/plugin-babel/src/helpers/options.cjs +0 -50
  79. package/dist/plugin-babel/src/helpers/options.mjs +0 -47
  80. package/dist/plugin-babel/src/index.cjs +0 -91
  81. package/dist/plugin-babel/src/index.mjs +0 -89
  82. package/dist/plugin-env/src/babel/index.cjs +0 -1
  83. package/dist/plugin-env/src/babel/index.mjs +0 -3
  84. package/dist/plugin-env/src/babel/plugin.cjs +0 -121
  85. package/dist/plugin-env/src/babel/plugin.mjs +0 -119
  86. package/dist/plugin-env/src/components/docs.cjs +0 -9
  87. package/dist/plugin-env/src/components/docs.mjs +0 -11
  88. package/dist/plugin-env/src/components/env.cjs +0 -575
  89. package/dist/plugin-env/src/components/env.mjs +0 -572
  90. package/dist/plugin-env/src/components/index.cjs +0 -2
  91. package/dist/plugin-env/src/components/index.mjs +0 -4
  92. package/dist/plugin-env/src/helpers/automd-generator.cjs +0 -22
  93. package/dist/plugin-env/src/helpers/automd-generator.mjs +0 -21
  94. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +0 -55
  95. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +0 -54
  96. package/dist/plugin-env/src/helpers/index.cjs +0 -6
  97. package/dist/plugin-env/src/helpers/index.mjs +0 -8
  98. package/dist/plugin-env/src/helpers/load.cjs +0 -83
  99. package/dist/plugin-env/src/helpers/load.mjs +0 -80
  100. package/dist/plugin-env/src/helpers/persistence.cjs +0 -201
  101. package/dist/plugin-env/src/helpers/persistence.mjs +0 -190
  102. package/dist/plugin-env/src/helpers/reflect.cjs +0 -111
  103. package/dist/plugin-env/src/helpers/reflect.mjs +0 -103
  104. package/dist/plugin-env/src/helpers/source-file-env.cjs +0 -24
  105. package/dist/plugin-env/src/helpers/source-file-env.mjs +0 -23
  106. package/dist/plugin-env/src/helpers/template-helpers.cjs +0 -2
  107. package/dist/plugin-env/src/helpers/template-helpers.mjs +0 -4
  108. package/dist/plugin-env/src/index.cjs +0 -175
  109. package/dist/plugin-env/src/index.mjs +0 -173
  110. package/dist/powerlines/src/lib/build/esbuild.cjs +0 -102
  111. package/dist/powerlines/src/lib/build/esbuild.mjs +0 -100
  112. package/dist/powerlines/src/lib/entry.cjs +0 -12
  113. package/dist/powerlines/src/lib/entry.mjs +0 -14
  114. package/dist/powerlines/src/lib/logger.cjs +0 -41
  115. package/dist/powerlines/src/lib/logger.mjs +0 -39
  116. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -38
  117. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -35
  118. package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -35
  119. package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -34
  120. package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -30
  121. package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -29
  122. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
  123. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -3
@@ -1,31 +1,31 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_refkey = require('../plugin-alloy/src/helpers/refkey.cjs');
3
- const require_tsdoc = require('../plugin-alloy/src/typescript/components/tsdoc.cjs');
4
- const require_builtin_file = require('../plugin-alloy/src/typescript/components/builtin-file.cjs');
5
2
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
3
  let defu = require("defu");
7
4
  defu = require_rolldown_runtime.__toESM(defu);
8
5
  let __alloy_js_core = require("@alloy-js/core");
9
6
  let __alloy_js_typescript = require("@alloy-js/typescript");
7
+ let __powerlines_plugin_alloy_helpers_refkey = require("@powerlines/plugin-alloy/helpers/refkey");
8
+ let __powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
9
+ let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
10
10
 
11
11
  //#region src/components/react-optimized.tsx
12
- const isOptimizationEnabledRefkey = require_refkey.refkey("isOptimizationEnabled");
12
+ const isOptimizationEnabledRefkey = (0, __powerlines_plugin_alloy_helpers_refkey.refkey)("isOptimizationEnabled");
13
13
  /**
14
14
  * Generates the `react/optimized` builtin module for the Powerlines project.
15
15
  */
16
16
  function ReactOptimizedBuiltin(props) {
17
17
  const [{ override }, rest] = (0, __alloy_js_core.splitProps)(props, ["override"]);
18
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_builtin_file.BuiltinFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
18
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_builtin_file.BuiltinFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
19
19
  id: "react/optimized",
20
20
  description: "A built-in module to provide access to environment configuration to determine React optimizations.",
21
21
  get builtinImports() {
22
22
  return (0, defu.default)({ env: ["env", "isDevelopment"] }, rest.builtinImports ?? {});
23
23
  },
24
24
  get children() {
25
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
25
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
26
26
  heading: "A gating function to determine if the optimized [React compiler](https://react.dev/reference/react-compiler) source code should be used.",
27
27
  get children() {
28
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocLink, { children: `https://react.dev/reference/react-compiler/gating` }), (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocReturns, { children: `A boolean indicating if the React compiler's optimizations should be used.` })];
28
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://react.dev/reference/react-compiler/gating` }), (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `A boolean indicating if the React compiler's optimizations should be used.` })];
29
29
  }
30
30
  }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.FunctionDeclaration, {
31
31
  refkey: isOptimizationEnabledRefkey,
@@ -1,13 +1,13 @@
1
- import { refkey as refkey$1 } from "../plugin-alloy/src/helpers/refkey.mjs";
2
- import { TSDoc, TSDocLink, TSDocReturns } from "../plugin-alloy/src/typescript/components/tsdoc.mjs";
3
- import { BuiltinFile } from "../plugin-alloy/src/typescript/components/builtin-file.mjs";
4
1
  import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
5
2
  import defu from "defu";
6
3
  import { Show, code, splitProps } from "@alloy-js/core";
7
4
  import { FunctionDeclaration } from "@alloy-js/typescript";
5
+ import { refkey } from "@powerlines/plugin-alloy/helpers/refkey";
6
+ import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
7
+ import { TSDoc, TSDocLink, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
8
8
 
9
9
  //#region src/components/react-optimized.tsx
10
- const isOptimizationEnabledRefkey = refkey$1("isOptimizationEnabled");
10
+ const isOptimizationEnabledRefkey = refkey("isOptimizationEnabled");
11
11
  /**
12
12
  * Generates the `react/optimized` builtin module for the Powerlines project.
13
13
  */
package/dist/index.cjs CHANGED
@@ -1,17 +1,19 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_index = require('./plugin-babel/src/index.cjs');
4
- const require_index$1 = require('./plugin-env/src/index.cjs');
5
- const require_tsconfig = require('./powerlines/src/lib/typescript/tsconfig.cjs');
6
3
  const require_components_react_optimized = require('./components/react-optimized.cjs');
7
4
  require('./components/index.cjs');
8
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
9
6
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
7
+ let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
8
+ __powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
9
+ let __powerlines_plugin_env = require("@powerlines/plugin-env");
10
+ __powerlines_plugin_env = require_rolldown_runtime.__toESM(__powerlines_plugin_env);
10
11
  let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
11
- let defu = require("defu");
12
- defu = require_rolldown_runtime.__toESM(defu);
13
12
  let __vitejs_plugin_react = require("@vitejs/plugin-react");
14
13
  __vitejs_plugin_react = require_rolldown_runtime.__toESM(__vitejs_plugin_react);
14
+ let defu = require("defu");
15
+ defu = require_rolldown_runtime.__toESM(defu);
16
+ let powerlines_lib_typescript_tsconfig = require("powerlines/lib/typescript/tsconfig");
15
17
 
16
18
  //#region src/index.tsx
17
19
  /**
@@ -19,8 +21,8 @@ __vitejs_plugin_react = require_rolldown_runtime.__toESM(__vitejs_plugin_react);
19
21
  */
20
22
  const plugin = (options = {}) => {
21
23
  return [
22
- require_index.default(options.babel),
23
- require_index$1.default(options.env),
24
+ (0, __powerlines_plugin_babel.default)(options.babel),
25
+ (0, __powerlines_plugin_env.default)(options.env),
24
26
  {
25
27
  name: "react",
26
28
  config() {
@@ -58,14 +60,14 @@ const plugin = (options = {}) => {
58
60
  if (this.tsconfig.options.jsxImportSource === "react") this.tsconfig.tsconfigJson.compilerOptions.jsx ??= "react-jsx";
59
61
  else this.tsconfig.tsconfigJson.compilerOptions.jsx ??= "preserve";
60
62
  if (this.environment.consumer === "client") {
61
- if (!require_tsconfig.isMatchFound("dom", this.tsconfig.tsconfigJson.compilerOptions.lib)) this.tsconfig.tsconfigJson.compilerOptions.lib.push("DOM");
62
- if (!require_tsconfig.isMatchFound("dom.iterable", this.tsconfig.tsconfigJson.compilerOptions.lib)) this.tsconfig.tsconfigJson.compilerOptions.lib.push("DOM.Iterable");
63
+ if (!(0, powerlines_lib_typescript_tsconfig.isMatchFound)("dom", this.tsconfig.tsconfigJson.compilerOptions.lib)) this.tsconfig.tsconfigJson.compilerOptions.lib.push("DOM");
64
+ if (!(0, powerlines_lib_typescript_tsconfig.isMatchFound)("dom.iterable", this.tsconfig.tsconfigJson.compilerOptions.lib)) this.tsconfig.tsconfigJson.compilerOptions.lib.push("DOM.Iterable");
63
65
  }
64
- if (!require_tsconfig.isMatchFound("esnext", this.tsconfig.tsconfigJson.compilerOptions.lib)) this.tsconfig.tsconfigJson.compilerOptions.lib.push("ESNext");
66
+ if (!(0, powerlines_lib_typescript_tsconfig.isMatchFound)("esnext", this.tsconfig.tsconfigJson.compilerOptions.lib)) this.tsconfig.tsconfigJson.compilerOptions.lib.push("ESNext");
65
67
  if (this.tsconfig.options.resolveJsonModule !== true) this.tsconfig.tsconfigJson.compilerOptions.resolveJsonModule = true;
66
68
  if (this.config.build.variant === "vite") {
67
69
  this.tsconfig.tsconfigJson.compilerOptions.types ??= [];
68
- if (!require_tsconfig.isMatchFound("vite/client", this.tsconfig.tsconfigJson.compilerOptions.types)) this.tsconfig.tsconfigJson.compilerOptions.types.push("vite/client");
70
+ if (!(0, powerlines_lib_typescript_tsconfig.isMatchFound)("vite/client", this.tsconfig.tsconfigJson.compilerOptions.types)) this.tsconfig.tsconfigJson.compilerOptions.types.push("vite/client");
69
71
  const viteBuildConfig = this.config.build;
70
72
  viteBuildConfig.build ??= {};
71
73
  viteBuildConfig.build.target = "chrome95";
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
- import src_default$1 from "./plugin-babel/src/index.mjs";
2
- import src_default$2 from "./plugin-env/src/index.mjs";
3
- import { isMatchFound } from "./powerlines/src/lib/typescript/tsconfig.mjs";
4
1
  import { ReactOptimizedBuiltin } from "./components/react-optimized.mjs";
5
2
  import "./components/index.mjs";
6
3
  import { createComponent } from "@alloy-js/core/jsx-runtime";
7
4
  import { ReflectionKind, ReflectionVisibility } from "@powerlines/deepkit/vendor/type";
5
+ import babel from "@powerlines/plugin-babel";
6
+ import env from "@powerlines/plugin-env";
8
7
  import { LogLevelLabel } from "@storm-software/config-tools/types";
9
- import defu from "defu";
10
8
  import viteReactPlugin from "@vitejs/plugin-react";
9
+ import defu from "defu";
10
+ import { isMatchFound } from "powerlines/lib/typescript/tsconfig";
11
11
 
12
12
  //#region src/index.tsx
13
13
  /**
@@ -15,8 +15,8 @@ import viteReactPlugin from "@vitejs/plugin-react";
15
15
  */
16
16
  const plugin = (options = {}) => {
17
17
  return [
18
- src_default$1(options.babel),
19
- src_default$2(options.env),
18
+ babel(options.babel),
19
+ env(options.env),
20
20
  {
21
21
  name: "react",
22
22
  config() {
@@ -1,6 +1,6 @@
1
1
  import "../../../powerlines/src/types/resolved.mjs";
2
2
  import { Children } from "@alloy-js/core";
3
- import { SourceFileContext as SourceFileContext$1 } from "@alloy-js/typescript";
3
+ import "@alloy-js/typescript";
4
4
 
5
5
  //#region ../plugin-alloy/src/types/components.d.ts
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps, TypescriptFileImports } from "../../types/components.mjs";
2
2
  import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
3
3
  import { Children } from "@alloy-js/core";
4
- import { TSModuleScope } from "@alloy-js/typescript";
4
+ import "@alloy-js/typescript";
5
5
 
6
6
  //#region ../plugin-alloy/src/typescript/components/typescript-file.d.ts
7
7
  type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
@@ -6,8 +6,8 @@ import { AutoMDPluginOptions } from "../../../plugin-automd/src/types/plugin.mjs
6
6
  import "../../../plugin-babel/src/types/index.mjs";
7
7
  import { EnvInterface, SecretsInterface } from "./runtime.mjs";
8
8
  import { Children } from "@alloy-js/core/jsx-runtime";
9
- import { DotenvParseOutput } from "@stryke/env/types";
10
9
  import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
10
+ import { DotenvParseOutput } from "@stryke/env/types";
11
11
 
12
12
  //#region ../plugin-env/src/types/plugin.d.ts
13
13
  type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
@@ -1,9 +1,9 @@
1
- import { BuildOptions } from "esbuild";
2
1
  import { DepOptimizationOptions, UserConfig } from "vite";
3
2
  import { UserConfig as UserConfig$1 } from "@farmfe/core";
4
3
  import { Configuration } from "@rspack/core";
5
- import { BuildOptions as BuildOptions$1 } from "@storm-software/tsup/types";
4
+ import { BuildOptions } from "@storm-software/tsup/types";
6
5
  import { UnbuildOptions } from "@storm-software/unbuild/types";
6
+ import { BuildOptions as BuildOptions$1 } from "esbuild";
7
7
  import { RolldownOptions } from "rolldown";
8
8
  import { OutputOptions, RollupOptions } from "rollup";
9
9
  import { UserConfig as UserConfig$2 } from "tsdown";
@@ -153,8 +153,8 @@ interface BuildConfig {
153
153
  override?: Record<string, any>;
154
154
  }
155
155
  type BuildResolvedConfig = Omit<BuildConfig, "override">;
156
- type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
157
- type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
156
+ type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
157
+ type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
158
158
  type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
159
159
  /**
160
160
  * Optimize deps config
@@ -173,8 +173,8 @@ type RollupBuildConfig = Omit<RollupOptions, "entry" | "external" | "input" | "o
173
173
  type RollupResolvedBuildConfig = RollupOptions & BuildResolvedConfig;
174
174
  type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfig" | "logLevel" | "output"> & BuildConfig;
175
175
  type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
176
- type TsupBuildConfig = Partial<Omit<BuildOptions$1, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
177
- type TsupResolvedBuildConfig = BuildOptions$1 & BuildResolvedConfig;
176
+ type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
177
+ type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
178
178
  type TsdownBuildConfig = Partial<Omit<UserConfig$2, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
179
179
  type TsdownResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
180
180
  type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
@@ -4,13 +4,12 @@ import { Plugin } from "./plugin.mjs";
4
4
  import { TSConfig } from "./tsconfig.mjs";
5
5
  import { PluginContext } from "./context.mjs";
6
6
  import { BabelTransformPluginOptions } from "./babel.mjs";
7
- import { transformAsync } from "@babel/core";
8
7
  import { LogLevelLabel } from "@storm-software/config-tools/types";
9
- import "c12";
10
8
  import { MaybePromise } from "@stryke/types/base";
11
9
  import { AssetGlob } from "@stryke/types/file";
12
10
  import { TypeDefinitionParameter } from "@stryke/types/configuration";
13
11
  import { PreviewOptions } from "vite";
12
+ import { transformAsync } from "@babel/core";
14
13
  import { Format } from "@storm-software/build-tools/types";
15
14
  import { StormWorkspaceConfig } from "@storm-software/config/types";
16
15
  import { DateString } from "compatx";
@@ -19,7 +19,7 @@ import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessag
19
19
  //#region ../powerlines/src/types/context.d.ts
20
20
 
21
21
  /**
22
- * The severity level of a {@link LogRecord}.
22
+ * The severity level of a log message.
23
23
  */
24
24
  type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
25
25
  declare const LogLevel: {
@@ -19,7 +19,7 @@ import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessag
19
19
  //#region ../powerlines/src/types/context.d.ts
20
20
 
21
21
  /**
22
- * The severity level of a {@link LogRecord}.
22
+ * The severity level of a log message.
23
23
  */
24
24
  type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
25
25
  declare const LogLevel: {
@@ -1,5 +1,5 @@
1
- import ts from "typescript";
2
1
  import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
2
+ import ts from "typescript";
3
3
 
4
4
  //#region ../powerlines/src/types/tsconfig.d.ts
5
5
  type ReflectionMode = "default" | "explicit" | "never";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-react",
3
- "version": "0.1.142",
3
+ "version": "0.1.144",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a React application.",
6
6
  "repository": {
@@ -140,9 +140,10 @@
140
140
  "@alloy-js/json": "^0.22.0",
141
141
  "@alloy-js/markdown": "^0.22.0",
142
142
  "@alloy-js/typescript": "^0.22.0",
143
- "@powerlines/plugin-alloy": "^0.18.10",
144
- "@powerlines/plugin-babel": "^0.12.137",
145
- "@powerlines/plugin-env": "^0.15.13",
143
+ "@babel/core": "^7.28.5",
144
+ "@powerlines/plugin-alloy": "^0.18.12",
145
+ "@powerlines/plugin-babel": "^0.12.139",
146
+ "@powerlines/plugin-env": "^0.15.15",
146
147
  "@storm-software/config-tools": "^1.188.75",
147
148
  "@stryke/cli": "^0.12.37",
148
149
  "@stryke/convert": "^0.6.30",
@@ -151,16 +152,14 @@
151
152
  "@vitejs/plugin-react": "^5.1.2",
152
153
  "babel-plugin-react-compiler": "^1.0.0",
153
154
  "defu": "^6.1.4",
154
- "powerlines": "^0.37.2"
155
+ "powerlines": "^0.37.4"
155
156
  },
156
157
  "devDependencies": {
157
- "@babel/core": "^7.28.5",
158
+ "@powerlines/plugin-plugin": "^0.12.82",
158
159
  "@types/node": "^24.10.4",
159
160
  "@types/react": "^19.2.7",
160
- "@types/react-dom": "^19.2.3",
161
- "react": "^19.2.3",
162
- "react-dom": "^19.2.3"
161
+ "@types/react-dom": "^19.2.3"
163
162
  },
164
163
  "publishConfig": { "access": "public" },
165
- "gitHead": "5a9bfc9333eca98a453682f39a04a0d642930a50"
164
+ "gitHead": "48a35579bd5535a267a420c160c273899920b2e7"
166
165
  }