@powerlines/plugin-react 0.1.38 → 0.1.40
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/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/{runtime-DDbKrrxM.d.cts → runtime-C4GhD-2M.d.cts} +3 -3
- package/dist/{runtime-hDetUSX2.d.ts → runtime-Em3Zwtrf.d.ts} +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugin.d.cts +3 -2
- package/dist/types/plugin.d.ts +3 -2
- package/dist/types/runtime.d.cts +1 -1
- package/dist/types/runtime.d.ts +1 -1
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
const h=createPlugin.createAlloyPlugin(s=>({name:"react",dependsOn:[f__default.default(s.babel),a__default.default(s.env)],config(){return d__default.default({react:s},{react:{jsxImportSource:this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource}},{react:{jsxRuntime:"automatic",jsxImportSource:"react",compiler:{target:"19",compilationMode:"infer",gating:{source:`${this.config.output.builtinPrefix}:react/optimized`,importSpecifierName:"isOptimizationEnabled"},enableReanimatedCheck:true,logger:{logEvent:chunkFBBMZ4NC_cjs.a((o,i)=>{this.log(i.kind==="CompileSuccess"?types$1.LogLevelLabel.SUCCESS:i.kind==="AutoDepsEligible"||i.kind==="AutoDepsDecorations"?types$1.LogLevelLabel.INFO:i.kind==="CompileSkip"||i.kind==="CompileDiagnostic"?types$1.LogLevelLabel.DEBUG:i.kind==="Timing"?types$1.LogLevelLabel.TRACE:types$1.LogLevelLabel.ERROR,`(${o}) ${i.kind==="CompileSuccess"?"React Compiler Success":i.kind==="AutoDepsEligible"?`React AutoDeps Eligible - ${i.depArrayLoc.identifierName||"No identifier"}`:i.kind==="AutoDepsDecorations"?`React AutoDeps Decorations - ${i.decorations.filter(n=>n.identifierName).map(n=>n.identifierName).join(", ")}`:i.kind==="CompileSkip"?`React Compile Skip - ${i.reason}`:i.kind==="CompileDiagnostic"?`React Compile Diagnostic - (Category: ${i.detail.category}) ${i.detail.reason}${i.detail.description?`
|
|
7
|
+
const h=createPlugin.createAlloyPlugin((s={})=>({name:"react",dependsOn:[f__default.default(s.babel),a__default.default(s.env)],config(){return d__default.default({react:s},{react:{jsxImportSource:this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource}},{react:{jsxRuntime:"automatic",jsxImportSource:"react",compiler:{target:"19",compilationMode:"infer",gating:{source:`${this.config.output.builtinPrefix}:react/optimized`,importSpecifierName:"isOptimizationEnabled"},enableReanimatedCheck:true,logger:{logEvent:chunkFBBMZ4NC_cjs.a((o,i)=>{this.log(i.kind==="CompileSuccess"?types$1.LogLevelLabel.SUCCESS:i.kind==="AutoDepsEligible"||i.kind==="AutoDepsDecorations"?types$1.LogLevelLabel.INFO:i.kind==="CompileSkip"||i.kind==="CompileDiagnostic"?types$1.LogLevelLabel.DEBUG:i.kind==="Timing"?types$1.LogLevelLabel.TRACE:types$1.LogLevelLabel.ERROR,`(${o}) ${i.kind==="CompileSuccess"?"React Compiler Success":i.kind==="AutoDepsEligible"?`React AutoDeps Eligible - ${i.depArrayLoc.identifierName||"No identifier"}`:i.kind==="AutoDepsDecorations"?`React AutoDeps Decorations - ${i.decorations.filter(n=>n.identifierName).map(n=>n.identifierName).join(", ")}`:i.kind==="CompileSkip"?`React Compile Skip - ${i.reason}`:i.kind==="CompileDiagnostic"?`React Compile Diagnostic - (Category: ${i.detail.category}) ${i.detail.reason}${i.detail.description?`
|
|
8
8
|
${i.detail.description}`:""}`:i.kind==="Timing"?`React ${i.measurement.entryType} Timing (${i.measurement.name}) - ${i.measurement.duration}ms`:`React Compiler Error - ${i.fnLoc?.identifierName||"unknown location"}`}`);},"logEvent")}}}})},configResolved(){if(this.dependencies.react="^19.2.0",this.dependencies["react-dom"]="^19.2.0",this.devDependencies["@types/react"]="^19.2.2",this.devDependencies["@types/react-dom"]="^19.2.2",this.config.react.compiler!==false&&(this.config.transform.babel??={},this.config.transform.babel.plugins??=[],this.config.transform.babel.plugins.push(["babel-plugin-react-compiler",this.config.react.compiler])),this.tsconfig.tsconfigJson.compilerOptions??={},this.tsconfig.tsconfigJson.compilerOptions.module??="esnext",this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource=this.config.react.jsxImportSource,this.tsconfig.options.jsxImportSource==="react"?this.tsconfig.tsconfigJson.compilerOptions.jsx??="react-jsx":this.tsconfig.tsconfigJson.compilerOptions.jsx??="preserve",this.environment.consumer==="client"&&(this.tsconfig.options.lib?.some(o=>o.toLowerCase()!=="dom")||(this.tsconfig.tsconfigJson.compilerOptions.lib??=[],this.tsconfig.tsconfigJson.compilerOptions.lib.push("dom")),this.tsconfig.options.lib?.some(o=>o.toLowerCase()!=="dom.iterable")||(this.tsconfig.tsconfigJson.compilerOptions.lib??=[],this.tsconfig.tsconfigJson.compilerOptions.lib.push("dom.iterable"))),this.tsconfig.tsconfigJson.compilerOptions.lib=[],tsconfig.isMatchFound("dom",this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push("DOM"),tsconfig.isMatchFound("dom.iterable",this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push("DOM.Iterable"),tsconfig.isMatchFound("esnext",this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push("ESNext"),this.tsconfig.options.resolveJsonModule!==true&&(this.tsconfig.tsconfigJson.compilerOptions.resolveJsonModule=true),this.config.build.variant==="vite"){this.tsconfig.tsconfigJson.compilerOptions.types??=[],tsconfig.isMatchFound("vite/client",this.tsconfig.tsconfigJson.compilerOptions.types)||this.tsconfig.tsconfigJson.compilerOptions.types.push("vite/client");const o=this.config.build;o.build??={},o.build.target="chrome95",o.plugins??=[],o.plugins.unshift(g__default.default({babel:this.config.transform.babel,jsxImportSource:this.config.react.jsxImportSource,jsxRuntime:this.config.react.jsxRuntime,reactRefreshHost:this.config.react.reactRefreshHost}));}this.env?.types?.env&&!this.env.types.env.hasProperty("DISABLE_REACT_COMPILER")&&this.env.types.env.addProperty({name:"DISABLE_REACT_COMPILER",optional:true,readonly:true,description:"Disables the React compiler optimizations.",visibility:type.ReflectionVisibility.public,type:{kind:type.ReflectionKind.boolean},default:false});},render(){const o=this;return jsxRuntime.createComponent(reactOptimized.ReactOptimizedBuiltin,{get override(){return o.config.react.compiler===false?false:void 0}})}}));var j=h;exports.default=j;exports.plugin=h;Object.keys(components).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return components[k]}})});Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin } from './runtime-
|
|
1
|
+
import { P as PluginContext, a as Plugin } from './runtime-C4GhD-2M.cjs';
|
|
2
2
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
3
3
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
4
|
-
import { ReactPluginContext } from './types/plugin.cjs';
|
|
5
|
-
export { ReactCompilerOptions, ReactPluginOptions,
|
|
6
|
-
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps } from './components/react-optimized.cjs';
|
|
4
|
+
import { ReactPluginContext, ReactPluginResolvedConfig } from './types/plugin.cjs';
|
|
5
|
+
export { ReactCompilerOptions, ReactPluginOptions, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig } from './types/plugin.cjs';
|
|
7
6
|
export { ReactEnvInterface, __ΩReactEnvInterface } from './types/runtime.cjs';
|
|
7
|
+
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps } from './components/react-optimized.cjs';
|
|
8
8
|
import '@stryke/env/get-env-paths';
|
|
9
9
|
import '@stryke/types/base';
|
|
10
10
|
import '@stryke/types/package-json';
|
|
@@ -57,6 +57,6 @@ type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions
|
|
|
57
57
|
/**
|
|
58
58
|
* A package containing a Powerlines plugin for building a React application.
|
|
59
59
|
*/
|
|
60
|
-
declare const plugin: (options: Parameters<AlloyPluginBuilder<ReactPluginContext
|
|
60
|
+
declare const plugin: (options: Parameters<AlloyPluginBuilder<ReactPluginContext<ReactPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<ReactPluginContext<ReactPluginResolvedConfig>>;
|
|
61
61
|
|
|
62
|
-
export { ReactPluginContext, plugin as default, plugin };
|
|
62
|
+
export { ReactPluginContext, ReactPluginResolvedConfig, plugin as default, plugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin } from './runtime-
|
|
1
|
+
import { P as PluginContext, a as Plugin } from './runtime-Em3Zwtrf.js';
|
|
2
2
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
3
3
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
4
|
-
import { ReactPluginContext } from './types/plugin.js';
|
|
5
|
-
export { ReactCompilerOptions, ReactPluginOptions,
|
|
6
|
-
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps } from './components/react-optimized.js';
|
|
4
|
+
import { ReactPluginContext, ReactPluginResolvedConfig } from './types/plugin.js';
|
|
5
|
+
export { ReactCompilerOptions, ReactPluginOptions, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig } from './types/plugin.js';
|
|
7
6
|
export { ReactEnvInterface, __ΩReactEnvInterface } from './types/runtime.js';
|
|
7
|
+
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps } from './components/react-optimized.js';
|
|
8
8
|
import '@stryke/env/get-env-paths';
|
|
9
9
|
import '@stryke/types/base';
|
|
10
10
|
import '@stryke/types/package-json';
|
|
@@ -57,6 +57,6 @@ type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions
|
|
|
57
57
|
/**
|
|
58
58
|
* A package containing a Powerlines plugin for building a React application.
|
|
59
59
|
*/
|
|
60
|
-
declare const plugin: (options: Parameters<AlloyPluginBuilder<ReactPluginContext
|
|
60
|
+
declare const plugin: (options: Parameters<AlloyPluginBuilder<ReactPluginContext<ReactPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<ReactPluginContext<ReactPluginResolvedConfig>>;
|
|
61
61
|
|
|
62
|
-
export { ReactPluginContext, plugin as default, plugin };
|
|
62
|
+
export { ReactPluginContext, ReactPluginResolvedConfig, plugin as default, plugin };
|
package/dist/index.js
CHANGED
|
@@ -4,5 +4,5 @@ import {a as a$1}from'./chunk-UCUR73HG.js';import {createComponent}from'@alloy-j
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
const h=createAlloyPlugin(s=>({name:"react",dependsOn:[f(s.babel),a(s.env)],config(){return d({react:s},{react:{jsxImportSource:this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource}},{react:{jsxRuntime:"automatic",jsxImportSource:"react",compiler:{target:"19",compilationMode:"infer",gating:{source:`${this.config.output.builtinPrefix}:react/optimized`,importSpecifierName:"isOptimizationEnabled"},enableReanimatedCheck:true,logger:{logEvent:a$1((o,i)=>{this.log(i.kind==="CompileSuccess"?LogLevelLabel.SUCCESS:i.kind==="AutoDepsEligible"||i.kind==="AutoDepsDecorations"?LogLevelLabel.INFO:i.kind==="CompileSkip"||i.kind==="CompileDiagnostic"?LogLevelLabel.DEBUG:i.kind==="Timing"?LogLevelLabel.TRACE:LogLevelLabel.ERROR,`(${o}) ${i.kind==="CompileSuccess"?"React Compiler Success":i.kind==="AutoDepsEligible"?`React AutoDeps Eligible - ${i.depArrayLoc.identifierName||"No identifier"}`:i.kind==="AutoDepsDecorations"?`React AutoDeps Decorations - ${i.decorations.filter(n=>n.identifierName).map(n=>n.identifierName).join(", ")}`:i.kind==="CompileSkip"?`React Compile Skip - ${i.reason}`:i.kind==="CompileDiagnostic"?`React Compile Diagnostic - (Category: ${i.detail.category}) ${i.detail.reason}${i.detail.description?`
|
|
7
|
+
const h=createAlloyPlugin((s={})=>({name:"react",dependsOn:[f(s.babel),a(s.env)],config(){return d({react:s},{react:{jsxImportSource:this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource}},{react:{jsxRuntime:"automatic",jsxImportSource:"react",compiler:{target:"19",compilationMode:"infer",gating:{source:`${this.config.output.builtinPrefix}:react/optimized`,importSpecifierName:"isOptimizationEnabled"},enableReanimatedCheck:true,logger:{logEvent:a$1((o,i)=>{this.log(i.kind==="CompileSuccess"?LogLevelLabel.SUCCESS:i.kind==="AutoDepsEligible"||i.kind==="AutoDepsDecorations"?LogLevelLabel.INFO:i.kind==="CompileSkip"||i.kind==="CompileDiagnostic"?LogLevelLabel.DEBUG:i.kind==="Timing"?LogLevelLabel.TRACE:LogLevelLabel.ERROR,`(${o}) ${i.kind==="CompileSuccess"?"React Compiler Success":i.kind==="AutoDepsEligible"?`React AutoDeps Eligible - ${i.depArrayLoc.identifierName||"No identifier"}`:i.kind==="AutoDepsDecorations"?`React AutoDeps Decorations - ${i.decorations.filter(n=>n.identifierName).map(n=>n.identifierName).join(", ")}`:i.kind==="CompileSkip"?`React Compile Skip - ${i.reason}`:i.kind==="CompileDiagnostic"?`React Compile Diagnostic - (Category: ${i.detail.category}) ${i.detail.reason}${i.detail.description?`
|
|
8
8
|
${i.detail.description}`:""}`:i.kind==="Timing"?`React ${i.measurement.entryType} Timing (${i.measurement.name}) - ${i.measurement.duration}ms`:`React Compiler Error - ${i.fnLoc?.identifierName||"unknown location"}`}`);},"logEvent")}}}})},configResolved(){if(this.dependencies.react="^19.2.0",this.dependencies["react-dom"]="^19.2.0",this.devDependencies["@types/react"]="^19.2.2",this.devDependencies["@types/react-dom"]="^19.2.2",this.config.react.compiler!==false&&(this.config.transform.babel??={},this.config.transform.babel.plugins??=[],this.config.transform.babel.plugins.push(["babel-plugin-react-compiler",this.config.react.compiler])),this.tsconfig.tsconfigJson.compilerOptions??={},this.tsconfig.tsconfigJson.compilerOptions.module??="esnext",this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource=this.config.react.jsxImportSource,this.tsconfig.options.jsxImportSource==="react"?this.tsconfig.tsconfigJson.compilerOptions.jsx??="react-jsx":this.tsconfig.tsconfigJson.compilerOptions.jsx??="preserve",this.environment.consumer==="client"&&(this.tsconfig.options.lib?.some(o=>o.toLowerCase()!=="dom")||(this.tsconfig.tsconfigJson.compilerOptions.lib??=[],this.tsconfig.tsconfigJson.compilerOptions.lib.push("dom")),this.tsconfig.options.lib?.some(o=>o.toLowerCase()!=="dom.iterable")||(this.tsconfig.tsconfigJson.compilerOptions.lib??=[],this.tsconfig.tsconfigJson.compilerOptions.lib.push("dom.iterable"))),this.tsconfig.tsconfigJson.compilerOptions.lib=[],isMatchFound("dom",this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push("DOM"),isMatchFound("dom.iterable",this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push("DOM.Iterable"),isMatchFound("esnext",this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push("ESNext"),this.tsconfig.options.resolveJsonModule!==true&&(this.tsconfig.tsconfigJson.compilerOptions.resolveJsonModule=true),this.config.build.variant==="vite"){this.tsconfig.tsconfigJson.compilerOptions.types??=[],isMatchFound("vite/client",this.tsconfig.tsconfigJson.compilerOptions.types)||this.tsconfig.tsconfigJson.compilerOptions.types.push("vite/client");const o=this.config.build;o.build??={},o.build.target="chrome95",o.plugins??=[],o.plugins.unshift(g({babel:this.config.transform.babel,jsxImportSource:this.config.react.jsxImportSource,jsxRuntime:this.config.react.jsxRuntime,reactRefreshHost:this.config.react.reactRefreshHost}));}this.env?.types?.env&&!this.env.types.env.hasProperty("DISABLE_REACT_COMPILER")&&this.env.types.env.addProperty({name:"DISABLE_REACT_COMPILER",optional:true,readonly:true,description:"Disables the React compiler optimizations.",visibility:ReflectionVisibility.public,type:{kind:ReflectionKind.boolean},default:false});},render(){const o=this;return createComponent(ReactOptimizedBuiltin,{get override(){return o.config.react.compiler===false?false:void 0}})}}));var I=h;export{I as default,h as plugin};
|
|
@@ -434,7 +434,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
434
434
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
|
|
435
435
|
[TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
|
|
436
436
|
};
|
|
437
|
-
interface Plugin<
|
|
437
|
+
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
438
438
|
/**
|
|
439
439
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
440
440
|
*/
|
|
@@ -465,7 +465,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
465
465
|
* @param other - The other plugin to compare against.
|
|
466
466
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
467
467
|
*/
|
|
468
|
-
dedupe?: false | ((other: Plugin<
|
|
468
|
+
dedupe?: false | ((other: Plugin<TContext>) => boolean);
|
|
469
469
|
/**
|
|
470
470
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
471
471
|
*/
|
|
@@ -476,7 +476,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
476
476
|
* @param environment - The environment to check.
|
|
477
477
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
478
478
|
*/
|
|
479
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<
|
|
479
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
type ReflectionMode = "default" | "explicit" | "never";
|
|
@@ -434,7 +434,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
434
434
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
|
|
435
435
|
[TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
|
|
436
436
|
};
|
|
437
|
-
interface Plugin<
|
|
437
|
+
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
438
438
|
/**
|
|
439
439
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
440
440
|
*/
|
|
@@ -465,7 +465,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
465
465
|
* @param other - The other plugin to compare against.
|
|
466
466
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
467
467
|
*/
|
|
468
|
-
dedupe?: false | ((other: Plugin<
|
|
468
|
+
dedupe?: false | ((other: Plugin<TContext>) => boolean);
|
|
469
469
|
/**
|
|
470
470
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
471
471
|
*/
|
|
@@ -476,7 +476,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
476
476
|
* @param environment - The environment to check.
|
|
477
477
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
478
478
|
*/
|
|
479
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<
|
|
479
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
type ReflectionMode = "default" | "explicit" | "never";
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig } from './plugin.cjs';
|
|
2
2
|
export { ReactEnvInterface, __ΩReactEnvInterface } from './runtime.cjs';
|
|
3
|
-
import '../runtime-
|
|
3
|
+
import '../runtime-C4GhD-2M.cjs';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
6
|
import '@stryke/types/package-json';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig } from './plugin.js';
|
|
2
2
|
export { ReactEnvInterface, __ΩReactEnvInterface } from './runtime.js';
|
|
3
|
-
import '../runtime-
|
|
3
|
+
import '../runtime-Em3Zwtrf.js';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
6
|
import '@stryke/types/package-json';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
1
|
+
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-C4GhD-2M.cjs';
|
|
2
2
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
3
3
|
import { ReflectionClass } from '@deepkit/type';
|
|
4
4
|
import * as $ from '@stryke/capnp';
|
|
@@ -1782,7 +1782,8 @@ type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
|
|
|
1782
1782
|
*/
|
|
1783
1783
|
react: ReactPluginOptions;
|
|
1784
1784
|
};
|
|
1785
|
-
|
|
1785
|
+
interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {
|
|
1786
|
+
}
|
|
1786
1787
|
declare type __ΩReactCompilerOptions = any[];
|
|
1787
1788
|
declare type __ΩReactPluginOptions = any[];
|
|
1788
1789
|
declare type __ΩReactPluginUserConfig = any[];
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
1
|
+
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-Em3Zwtrf.js';
|
|
2
2
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
3
3
|
import { ReflectionClass } from '@deepkit/type';
|
|
4
4
|
import * as $ from '@stryke/capnp';
|
|
@@ -1782,7 +1782,8 @@ type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
|
|
|
1782
1782
|
*/
|
|
1783
1783
|
react: ReactPluginOptions;
|
|
1784
1784
|
};
|
|
1785
|
-
|
|
1785
|
+
interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {
|
|
1786
|
+
}
|
|
1786
1787
|
declare type __ΩReactCompilerOptions = any[];
|
|
1787
1788
|
declare type __ΩReactPluginOptions = any[];
|
|
1788
1789
|
declare type __ΩReactPluginUserConfig = any[];
|
package/dist/types/runtime.d.cts
CHANGED
package/dist/types/runtime.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a React application.",
|
|
6
6
|
"repository": {
|
|
@@ -124,25 +124,25 @@
|
|
|
124
124
|
"react-dom": { "optional": false }
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@storm-software/config-tools": "^1.188.
|
|
127
|
+
"@storm-software/config-tools": "^1.188.49",
|
|
128
128
|
"@stryke/cli": "^0.12.14",
|
|
129
129
|
"@stryke/convert": "^0.6.8",
|
|
130
130
|
"@stryke/fs": "^0.33.4",
|
|
131
131
|
"@stryke/path": "^0.21.2",
|
|
132
132
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
133
|
-
"@powerlines/alloy": "^0.11.
|
|
134
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
135
|
-
"@powerlines/plugin-env": "^0.13.
|
|
136
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
133
|
+
"@powerlines/alloy": "^0.11.49",
|
|
134
|
+
"@powerlines/plugin-babel": "^0.12.49",
|
|
135
|
+
"@powerlines/plugin-env": "^0.13.46",
|
|
136
|
+
"@powerlines/plugin-plugin": "^0.11.48",
|
|
137
137
|
"@vitejs/plugin-react": "^5.1.1",
|
|
138
138
|
"defu": "^6.1.4",
|
|
139
|
-
"powerlines": "^0.25.
|
|
139
|
+
"powerlines": "^0.25.2"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
|
-
"@powerlines/nx": "^0.10.
|
|
143
|
-
"@storm-software/tsup": "^0.2.
|
|
142
|
+
"@powerlines/nx": "^0.10.40",
|
|
143
|
+
"@storm-software/tsup": "^0.2.47",
|
|
144
144
|
"@types/node": "^24.10.1"
|
|
145
145
|
},
|
|
146
146
|
"publishConfig": { "access": "public" },
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "e5c7481779e32bd9810613c299e775bc033c9eac"
|
|
148
148
|
}
|