@powerlines/plugin-react 0.1.757 → 0.1.761
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/react-optimized.cjs +2 -3
- package/dist/components/react-optimized.d.cts +1 -1
- package/dist/components/react-optimized.d.mts +1 -1
- package/dist/components/react-optimized.mjs +1 -2
- package/dist/components/react-optimized.mjs.map +1 -1
- package/dist/index.cjs +6 -8
- package/dist/index.d.cts +1 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -5
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{react-optimized-Dgz-GaoJ.d.cts → react-optimized-DHePE-9k.d.cts} +1 -3
- package/dist/react-optimized-DHePE-9k.d.cts.map +1 -0
- package/dist/{react-optimized-Dgz-GaoJ.d.mts → react-optimized-DHePE-9k.d.mts} +1 -3
- package/dist/react-optimized-DHePE-9k.d.mts.map +1 -0
- package/dist/{rolldown-runtime-C24Yb2bl.cjs → rolldown-runtime-xuxB8TGW.cjs} +2 -3
- package/dist/types/plugin.d.cts +0 -2
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +0 -2
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +23 -23
- package/dist/react-optimized-Dgz-GaoJ.d.cts.map +0 -1
- package/dist/react-optimized-Dgz-GaoJ.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -74,6 +74,36 @@ A package containing a Powerlines plugin for building a React application.
|
|
|
74
74
|
|
|
75
75
|
<!-- END doctoc -->
|
|
76
76
|
|
|
77
|
+
## Features
|
|
78
|
+
|
|
79
|
+
- Builds a React application through the Powerlines plugin pipeline.
|
|
80
|
+
- Supports the `automatic` JSX runtime plus compiler options.
|
|
81
|
+
- Loads environment settings via `env` (e.g. `mode`).
|
|
82
|
+
- Ships shared components for React projects.
|
|
83
|
+
|
|
84
|
+
## Usage
|
|
85
|
+
|
|
86
|
+
Install the package:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pnpm add @powerlines/plugin-react
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Register the plugin in `powerlines.config.ts`:
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { defineConfig } from "powerlines/config";
|
|
96
|
+
import { plugin as react } from "@powerlines/plugin-react";
|
|
97
|
+
|
|
98
|
+
export default defineConfig({
|
|
99
|
+
plugins: [react({ jsxRuntime: "automatic" })],
|
|
100
|
+
react: { jsxRuntime: "automatic", compiler: {} },
|
|
101
|
+
env: { mode: "development" }
|
|
102
|
+
});
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Then run the Powerlines build for your project and open the dev server to view the app.
|
|
106
|
+
|
|
77
107
|
## Installing
|
|
78
108
|
|
|
79
109
|
Using [pnpm](http://pnpm.io):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_components_react_optimized = require(
|
|
2
|
+
const require_components_react_optimized = require("./react-optimized.cjs");
|
|
3
3
|
|
|
4
4
|
exports.ReactOptimizedBuiltin = require_components_react_optimized.ReactOptimizedBuiltin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-
|
|
1
|
+
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-DHePE-9k.cjs";
|
|
2
2
|
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-
|
|
1
|
+
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-DHePE-9k.mjs";
|
|
2
2
|
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_rolldown_runtime = require(
|
|
2
|
+
const require_rolldown_runtime = require("../rolldown-runtime-xuxB8TGW.cjs");
|
|
3
3
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
4
|
let defu = require("defu");
|
|
5
5
|
defu = require_rolldown_runtime.__toESM(defu, 1);
|
|
@@ -9,7 +9,7 @@ let _power_plant_alloy_js_typescript_components_tsdoc = require("@power-plant/al
|
|
|
9
9
|
let _powerlines_plugin_alloy_helpers_refkey = require("@powerlines/plugin-alloy/helpers/refkey");
|
|
10
10
|
let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/components/react-optimized.tsx
|
|
13
13
|
const isOptimizationEnabledRefkey = (0, _powerlines_plugin_alloy_helpers_refkey.refkey)("isOptimizationEnabled");
|
|
14
14
|
/**
|
|
15
15
|
* Generates the `react/optimized` builtin module for the Powerlines project.
|
|
@@ -46,5 +46,4 @@ function ReactOptimizedBuiltin(props) {
|
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
//#endregion
|
|
50
49
|
exports.ReactOptimizedBuiltin = ReactOptimizedBuiltin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-
|
|
1
|
+
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-DHePE-9k.cjs";
|
|
2
2
|
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-
|
|
1
|
+
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-DHePE-9k.mjs";
|
|
2
2
|
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps };
|
|
@@ -6,7 +6,7 @@ import { TSDoc, TSDocLink, TSDocReturns } from "@power-plant/alloy-js/typescript
|
|
|
6
6
|
import { refkey } from "@powerlines/plugin-alloy/helpers/refkey";
|
|
7
7
|
import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/components/react-optimized.tsx
|
|
10
10
|
const isOptimizationEnabledRefkey = refkey("isOptimizationEnabled");
|
|
11
11
|
/**
|
|
12
12
|
* Generates the `react/optimized` builtin module for the Powerlines project.
|
|
@@ -43,6 +43,5 @@ function ReactOptimizedBuiltin(props) {
|
|
|
43
43
|
}));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
//#endregion
|
|
47
46
|
export { ReactOptimizedBuiltin };
|
|
48
47
|
//# sourceMappingURL=react-optimized.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-optimized.mjs","names":[],"sources":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"react-optimized.mjs","names":["_$createComponent","_$mergeProps","_$createIntrinsic"],"sources":[],"mappings":""}
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_rolldown_runtime = require(
|
|
3
|
-
const require_components_react_optimized = require(
|
|
4
|
-
require(
|
|
5
|
-
require(
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-xuxB8TGW.cjs");
|
|
3
|
+
const require_components_react_optimized = require("./components/react-optimized.cjs");
|
|
4
|
+
require("./components/index.cjs");
|
|
5
|
+
require("./types/index.cjs");
|
|
6
6
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
7
|
let _power_plant_schema = require("@power-plant/schema");
|
|
8
8
|
let _powerlines_core_lib_typescript = require("@powerlines/core/lib/typescript");
|
|
@@ -23,7 +23,7 @@ let _powerlines_plugin_env_schemas_env = require("@powerlines/plugin-env/schemas
|
|
|
23
23
|
let zod = require("zod");
|
|
24
24
|
zod = require_rolldown_runtime.__toESM(zod, 1);
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
// src/schemas/env.ts
|
|
27
27
|
/**
|
|
28
28
|
* Zod schema for React plugin environment variables.
|
|
29
29
|
*/
|
|
@@ -31,8 +31,7 @@ const reactEnvSchema = _powerlines_plugin_env_schemas_env.envSchema.extend({ DIS
|
|
|
31
31
|
/**
|
|
32
32
|
* Inferred React environment configuration type from {@link reactEnvSchema}.
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
|
-
//#region src/index.tsx
|
|
34
|
+
// src/index.tsx
|
|
36
35
|
/**
|
|
37
36
|
* A package containing a Powerlines plugin for building a React application.
|
|
38
37
|
*/
|
|
@@ -118,7 +117,6 @@ const plugin = (options = {}) => {
|
|
|
118
117
|
];
|
|
119
118
|
};
|
|
120
119
|
|
|
121
|
-
//#endregion
|
|
122
120
|
exports.ReactOptimizedBuiltin = require_components_react_optimized.ReactOptimizedBuiltin;
|
|
123
121
|
exports.default = plugin;
|
|
124
122
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "./react-optimized-
|
|
1
|
+
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "./react-optimized-DHePE-9k.cjs";
|
|
2
2
|
import "./components/index.cjs";
|
|
3
3
|
import { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from "./types/plugin.cjs";
|
|
4
4
|
import "./types/index.cjs";
|
|
5
5
|
import { Plugin } from "powerlines";
|
|
6
6
|
import * as z from "zod";
|
|
7
|
-
//#region src/schemas/env.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* Zod schema for React plugin environment variables.
|
|
10
9
|
*/
|
|
@@ -132,8 +131,6 @@ declare const reactEnvSchema: z.ZodObject<{
|
|
|
132
131
|
* Inferred React environment configuration type from {@link reactEnvSchema}.
|
|
133
132
|
*/
|
|
134
133
|
type ReactEnv = z.infer<typeof reactEnvSchema>;
|
|
135
|
-
//#endregion
|
|
136
|
-
//#region src/index.d.ts
|
|
137
134
|
declare module "powerlines" {
|
|
138
135
|
interface Config {
|
|
139
136
|
react?: ReactPluginOptions;
|
|
@@ -143,6 +140,5 @@ declare module "powerlines" {
|
|
|
143
140
|
* A package containing a Powerlines plugin for building a React application.
|
|
144
141
|
*/
|
|
145
142
|
declare const plugin: <TContext extends ReactPluginContext = ReactPluginContext>(options?: ReactPluginOptions) => Plugin<TContext>[];
|
|
146
|
-
//#endregion
|
|
147
143
|
export { ReactCompilerOptions, ReactEnv, ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, plugin as default, plugin, reactEnvSchema };
|
|
148
144
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/schemas/env.ts","../src/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/schemas/env.ts","../src/index.tsx"],"mappings":";;;;;;;;;cAwBa,gBAAc,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKzB,EAAA,KAAA;;;;KAKU,WAAW,EAAE,aAAa;;YCM1B;IACR,QAAQ;;;;;;cAOC,SACX,iBAAiB,qBAAqB,oBAEtC,UAAS,uBAqNJ,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "./react-optimized-
|
|
1
|
+
import { n as ReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "./react-optimized-DHePE-9k.mjs";
|
|
2
2
|
import "./components/index.mjs";
|
|
3
3
|
import { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from "./types/plugin.mjs";
|
|
4
4
|
import "./types/index.mjs";
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { Plugin } from "powerlines";
|
|
7
|
-
//#region src/schemas/env.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* Zod schema for React plugin environment variables.
|
|
10
9
|
*/
|
|
@@ -132,8 +131,6 @@ declare const reactEnvSchema: z.ZodObject<{
|
|
|
132
131
|
* Inferred React environment configuration type from {@link reactEnvSchema}.
|
|
133
132
|
*/
|
|
134
133
|
type ReactEnv = z.infer<typeof reactEnvSchema>;
|
|
135
|
-
//#endregion
|
|
136
|
-
//#region src/index.d.ts
|
|
137
134
|
declare module "powerlines" {
|
|
138
135
|
interface Config {
|
|
139
136
|
react?: ReactPluginOptions;
|
|
@@ -143,6 +140,5 @@ declare module "powerlines" {
|
|
|
143
140
|
* A package containing a Powerlines plugin for building a React application.
|
|
144
141
|
*/
|
|
145
142
|
declare const plugin: <TContext extends ReactPluginContext = ReactPluginContext>(options?: ReactPluginOptions) => Plugin<TContext>[];
|
|
146
|
-
//#endregion
|
|
147
143
|
export { ReactCompilerOptions, ReactEnv, ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, plugin as default, plugin, reactEnvSchema };
|
|
148
144
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import defu from "defu";
|
|
|
15
15
|
import { envSchema } from "@powerlines/plugin-env/schemas/env";
|
|
16
16
|
import * as z from "zod";
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
// src/schemas/env.ts
|
|
19
19
|
/**
|
|
20
20
|
* Zod schema for React plugin environment variables.
|
|
21
21
|
*/
|
|
@@ -23,8 +23,7 @@ const reactEnvSchema = envSchema.extend({ DISABLE_REACT_COMPILER: z.boolean().me
|
|
|
23
23
|
/**
|
|
24
24
|
* Inferred React environment configuration type from {@link reactEnvSchema}.
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
//#region src/index.tsx
|
|
26
|
+
// src/index.tsx
|
|
28
27
|
/**
|
|
29
28
|
* A package containing a Powerlines plugin for building a React application.
|
|
30
29
|
*/
|
|
@@ -110,6 +109,5 @@ const plugin = (options = {}) => {
|
|
|
110
109
|
];
|
|
111
110
|
};
|
|
112
111
|
|
|
113
|
-
//#endregion
|
|
114
112
|
export { ReactOptimizedBuiltin, plugin as default, plugin, reactEnvSchema };
|
|
115
113
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["env","_$createComponent"],"sources":[],"mappings":""}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
2
|
-
//#region src/components/react-optimized.d.ts
|
|
3
2
|
interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
4
3
|
override?: boolean;
|
|
5
4
|
}
|
|
@@ -7,6 +6,5 @@ interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
|
7
6
|
* Generates the `react/optimized` builtin module for the Powerlines project.
|
|
8
7
|
*/
|
|
9
8
|
declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): import("@alloy-js/core").Children;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { ReactOptimizedBuiltinProps as n, ReactOptimizedBuiltin as t };
|
|
12
|
-
//# sourceMappingURL=react-optimized-
|
|
10
|
+
//# sourceMappingURL=react-optimized-DHePE-9k.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-optimized-DHePE-9k.d.cts","names":[],"sources":["../src/components/react-optimized.tsx"],"mappings":";UAgCiB,mCAAmC,KAClD;EAGA;;;;;iBAQc,sBAAsB,OAAO,sDAA0B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
2
|
-
//#region src/components/react-optimized.d.ts
|
|
3
2
|
interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
4
3
|
override?: boolean;
|
|
5
4
|
}
|
|
@@ -7,6 +6,5 @@ interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
|
7
6
|
* Generates the `react/optimized` builtin module for the Powerlines project.
|
|
8
7
|
*/
|
|
9
8
|
declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): import("@alloy-js/core").Children;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { ReactOptimizedBuiltinProps as n, ReactOptimizedBuiltin as t };
|
|
12
|
-
//# sourceMappingURL=react-optimized-
|
|
10
|
+
//# sourceMappingURL=react-optimized-DHePE-9k.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-optimized-DHePE-9k.d.mts","names":[],"sources":["../src/components/react-optimized.tsx"],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -24,8 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
Object.defineProperty(exports, '__toESM', {
|
|
27
|
+
Object.defineProperty(exports, "__toESM", {
|
|
29
28
|
enumerable: true,
|
|
30
29
|
get: function () {
|
|
31
30
|
return __toESM;
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BabelPluginOptions } from "@powerlines/plugin-babel/types/plugin";
|
|
2
2
|
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "@powerlines/plugin-env/types/plugin";
|
|
3
3
|
import { PluginOptions } from "babel-plugin-react-compiler";
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
4
|
type ReactCompilerOptions = Omit<PluginOptions, "logger">;
|
|
6
5
|
interface ReactPluginOptions {
|
|
7
6
|
/**
|
|
@@ -63,6 +62,5 @@ type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
|
|
|
63
62
|
react: ReactPluginOptions;
|
|
64
63
|
};
|
|
65
64
|
interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {}
|
|
66
|
-
//#endregion
|
|
67
65
|
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig };
|
|
68
66
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":["ExternalReactCompilerOptions"],"sources":["../../src/types/plugin.ts"],"mappings":";;;KA2BY,uBAAuB,KAAKA;UAEvB;;;;;;;;EAQf;;;;;;;;;EAUA;;;;;;;;;;EAWA,WAAW;;;;;;;;;;EAWX;;;;EAKA,QAAQ,QAAQ;;;;EAKhB,MAAM,QAAQ,KAAK;;KAGT,wBAAwB;;;;EAIlC,QAAQ;;KAGE,4BAA4B;;;;EAItC,OAAO;;UAGQ,mBACf,wBAAwB,4BAA4B,mCAC5C,iBAAiB"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PluginOptions } from "babel-plugin-react-compiler";
|
|
2
2
|
import { BabelPluginOptions } from "@powerlines/plugin-babel/types/plugin";
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "@powerlines/plugin-env/types/plugin";
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
4
|
type ReactCompilerOptions = Omit<PluginOptions, "logger">;
|
|
6
5
|
interface ReactPluginOptions {
|
|
7
6
|
/**
|
|
@@ -63,6 +62,5 @@ type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
|
|
|
63
62
|
react: ReactPluginOptions;
|
|
64
63
|
};
|
|
65
64
|
interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {}
|
|
66
|
-
//#endregion
|
|
67
65
|
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig };
|
|
68
66
|
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":["ExternalReactCompilerOptions"],"sources":["../../src/types/plugin.ts"],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.761",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a React application.",
|
|
6
6
|
"keywords": ["react", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -122,34 +122,34 @@
|
|
|
122
122
|
"@alloy-js/json": "^0.24.0",
|
|
123
123
|
"@alloy-js/markdown": "^0.24.0",
|
|
124
124
|
"@alloy-js/typescript": "^0.24.0",
|
|
125
|
-
"@babel/core": "^8.0.
|
|
126
|
-
"@power-plant/alloy-js": "^0.0.
|
|
127
|
-
"@power-plant/schema": "^0.0.
|
|
128
|
-
"@powerlines/core": "^0.48.
|
|
129
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
130
|
-
"@powerlines/plugin-babel": "^0.13.
|
|
131
|
-
"@powerlines/plugin-env": "^0.16.
|
|
132
|
-
"@powerlines/plugin-vite": "^0.14.
|
|
125
|
+
"@babel/core": "^8.0.7",
|
|
126
|
+
"@power-plant/alloy-js": "^0.0.95",
|
|
127
|
+
"@power-plant/schema": "^0.0.96",
|
|
128
|
+
"@powerlines/core": "^0.48.136",
|
|
129
|
+
"@powerlines/plugin-alloy": "^0.26.315",
|
|
130
|
+
"@powerlines/plugin-babel": "^0.13.214",
|
|
131
|
+
"@powerlines/plugin-env": "^0.16.426",
|
|
132
|
+
"@powerlines/plugin-vite": "^0.14.671",
|
|
133
133
|
"@rolldown/plugin-babel": "^0.2.4",
|
|
134
|
-
"@storm-software/config-tools": "^1.190.
|
|
135
|
-
"@stryke/cli": "^0.13.
|
|
136
|
-
"@stryke/convert": "^0.7.
|
|
137
|
-
"@stryke/fs": "^0.33.
|
|
138
|
-
"@stryke/path": "^0.29.
|
|
139
|
-
"@stryke/string-format": "^0.17.
|
|
140
|
-
"@vitejs/plugin-react": "^6.1.
|
|
134
|
+
"@storm-software/config-tools": "^1.190.154",
|
|
135
|
+
"@stryke/cli": "^0.13.90",
|
|
136
|
+
"@stryke/convert": "^0.7.47",
|
|
137
|
+
"@stryke/fs": "^0.33.118",
|
|
138
|
+
"@stryke/path": "^0.29.43",
|
|
139
|
+
"@stryke/string-format": "^0.17.58",
|
|
140
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
141
141
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
142
142
|
"defu": "^6.1.7",
|
|
143
|
-
"powerlines": "^0.47.
|
|
144
|
-
"zod": "^4.6.
|
|
143
|
+
"powerlines": "^0.47.217",
|
|
144
|
+
"zod": "^4.6.7"
|
|
145
145
|
},
|
|
146
146
|
"devDependencies": {
|
|
147
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
148
|
-
"@types/node": "^25.9.
|
|
147
|
+
"@powerlines/plugin-plugin": "^0.12.630",
|
|
148
|
+
"@types/node": "^25.9.9",
|
|
149
149
|
"@types/react": "^19.3.0",
|
|
150
150
|
"@types/react-dom": "^19.3.0",
|
|
151
|
-
"react": "^19.3.
|
|
152
|
-
"react-dom": "^19.3.
|
|
151
|
+
"react": "^19.3.1",
|
|
152
|
+
"react-dom": "^19.3.1"
|
|
153
153
|
},
|
|
154
154
|
"peerDependencies": { "react": ">=19.2.0", "react-dom": ">=19.2.0" },
|
|
155
155
|
"peerDependenciesMeta": {
|
|
@@ -157,5 +157,5 @@
|
|
|
157
157
|
"react-dom": { "optional": false }
|
|
158
158
|
},
|
|
159
159
|
"publishConfig": { "access": "public" },
|
|
160
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
|
|
161
161
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-optimized-Dgz-GaoJ.d.cts","names":[],"sources":["../src/components/react-optimized.tsx"],"mappings":";;UAgCiB,mCAAmC,KAClD;EAGA;;;;;iBAQc,sBAAsB,OAAO,sDAA0B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-optimized-Dgz-GaoJ.d.mts","names":[],"sources":["../src/components/react-optimized.tsx"],"mappings":""}
|