@powerlines/plugin-react 0.1.20 → 0.1.22

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.
@@ -1,6 +1,5 @@
1
1
  export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps } from './react-optimized.cjs';
2
2
  import '@alloy-js/core';
3
3
  import '@alloy-js/core/jsx-runtime';
4
- import '../vfs-BS4ST5TO.cjs';
5
- import '@stryke/json/types';
4
+ import '../fs-B3t0EW52.cjs';
6
5
  import 'node:fs';
@@ -1,6 +1,5 @@
1
1
  export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps } from './react-optimized.js';
2
2
  import '@alloy-js/core';
3
3
  import '@alloy-js/core/jsx-runtime';
4
- import '../vfs-BS4ST5TO.js';
5
- import '@stryke/json/types';
4
+ import '../fs-B3t0EW52.js';
6
5
  import 'node:fs';
@@ -1,8 +1,7 @@
1
1
  import * as _alloy_js_core from '@alloy-js/core';
2
2
  import { Children as Children$1, SourceFileProps as SourceFileProps$1 } from '@alloy-js/core';
3
3
  import { Children } from '@alloy-js/core/jsx-runtime';
4
- import { O as OutputModeType } from '../vfs-BS4ST5TO.cjs';
5
- import '@stryke/json/types';
4
+ import { O as OutputModeType } from '../fs-B3t0EW52.cjs';
6
5
  import 'node:fs';
7
6
 
8
7
  /**
@@ -1,8 +1,7 @@
1
1
  import * as _alloy_js_core from '@alloy-js/core';
2
2
  import { Children as Children$1, SourceFileProps as SourceFileProps$1 } from '@alloy-js/core';
3
3
  import { Children } from '@alloy-js/core/jsx-runtime';
4
- import { O as OutputModeType } from '../vfs-BS4ST5TO.js';
5
- import '@stryke/json/types';
4
+ import { O as OutputModeType } from '../fs-B3t0EW52.js';
6
5
  import 'node:fs';
7
6
 
8
7
  /**
@@ -1,23 +1,19 @@
1
- import { PrimitiveJsonValue } from '@stryke/json/types';
2
1
  import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
3
2
 
4
3
  declare const __VFS_PATCH__ = "__VFS_PATCH__";
5
4
  declare const __VFS_REVERT__ = "__VFS_REVERT__";
6
5
  type OutputModeType = "fs" | "virtual";
7
- interface VirtualFile {
6
+ interface VirtualFileMetadata {
8
7
  /**
9
- * The unique identifier for the virtual file.
10
- *
11
- * @remarks
12
- * If no specific id is provided, it defaults to the file's {@link path}.
8
+ * The identifier for the file data.
13
9
  */
14
10
  id: string;
15
11
  /**
16
- * Additional metadata associated with the virtual file.
12
+ * The timestamp of the virtual file.
17
13
  */
18
- details: Record<string, PrimitiveJsonValue>;
14
+ timestamp: number;
19
15
  /**
20
- * The variant of the file.
16
+ * The type of the file.
21
17
  *
22
18
  * @remarks
23
19
  * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
@@ -25,52 +21,72 @@ interface VirtualFile {
25
21
  * - `entry`: Indicates that the file is an entry point for execution.
26
22
  * - `normal`: Indicates that the file is a standard file without any special role.
27
23
  */
28
- variant: string;
24
+ type: string;
29
25
  /**
30
26
  * The output mode of the file.
31
- *
32
- * @remarks
33
- * This indicates whether the file is intended to be written to the actual file system (`fs`) or kept in the virtual file system (`virtual`).
34
- */
35
- mode: OutputModeType;
36
- /**
37
- * A virtual (or actual) path to the file in the file system.
38
27
  */
39
- path: string;
28
+ mode: string;
40
29
  /**
41
- * The contents of the file.
30
+ * Additional metadata associated with the file.
42
31
  */
43
- code: string | NodeJS.ArrayBufferView;
32
+ properties: Record<string, string>;
44
33
  }
45
- interface VirtualFileMetadata {
34
+ interface VirtualFileData {
46
35
  /**
47
36
  * The identifier for the file data.
48
37
  */
49
- id: string;
38
+ id?: string;
50
39
  /**
51
- * The variant of the file.
40
+ * The contents of the virtual file.
52
41
  */
53
- variant: string;
42
+ code: string;
43
+ /**
44
+ * The type of the file.
45
+ *
46
+ * @remarks
47
+ * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
48
+ * - `builtin`: Indicates that the file is a built-in module provided by the system.
49
+ * - `entry`: Indicates that the file is an entry point for execution.
50
+ * - `chunk`: Indicates that the file is a code chunk, typically used in code-splitting scenarios.
51
+ * - `prebuilt-chunk`: Indicates that the file is a prebuilt code chunk.
52
+ * - `asset`: Indicates that the file is a static asset, such as an image or stylesheet.
53
+ * - `normal`: Indicates that the file is a standard file without any special role.
54
+ */
55
+ type?: string;
54
56
  /**
55
57
  * The output mode of the file.
56
58
  */
57
- mode: string;
59
+ mode?: string;
58
60
  /**
59
61
  * Additional metadata associated with the file.
60
62
  */
61
- properties: Record<string, string>;
63
+ properties?: Record<string, string>;
64
+ }
65
+ interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
66
+ /**
67
+ * An additional name for the file.
68
+ */
69
+ path: string;
70
+ /**
71
+ * The timestamp of the virtual file.
72
+ */
73
+ timestamp: number;
62
74
  }
63
75
  interface ResolveFSOptions {
64
76
  mode?: OutputModeType;
65
77
  }
66
78
  type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
67
79
  interface PowerlinesWriteFileOptions extends ResolveFSOptions {
80
+ /**
81
+ * Should the file skip formatting before being written?
82
+ *
83
+ * @defaultValue false
84
+ */
68
85
  skipFormat?: boolean;
69
86
  }
70
87
  type NodeWriteFileOptions = WriteFileOptions$1;
71
88
  type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
72
- type PowerLinesWriteFileData = Partial<Omit<VirtualFile, "path" | "mode" | "code">> & Pick<VirtualFile, "code">;
73
- type WriteFileData = string | NodeJS.ArrayBufferView | PowerLinesWriteFileData;
89
+ type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
74
90
  interface ResolvePathOptions extends ResolveFSOptions {
75
91
  /**
76
92
  * Should the resolved path include the file extension?
@@ -85,7 +101,7 @@ interface ResolvePathOptions extends ResolveFSOptions {
85
101
  /**
86
102
  * The type of the path to resolve.
87
103
  */
88
- type?: "file" | "directory";
104
+ pathType?: "file" | "directory";
89
105
  }
90
106
  interface VirtualFileSystemInterface {
91
107
  /**
@@ -1,23 +1,19 @@
1
- import { PrimitiveJsonValue } from '@stryke/json/types';
2
1
  import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
3
2
 
4
3
  declare const __VFS_PATCH__ = "__VFS_PATCH__";
5
4
  declare const __VFS_REVERT__ = "__VFS_REVERT__";
6
5
  type OutputModeType = "fs" | "virtual";
7
- interface VirtualFile {
6
+ interface VirtualFileMetadata {
8
7
  /**
9
- * The unique identifier for the virtual file.
10
- *
11
- * @remarks
12
- * If no specific id is provided, it defaults to the file's {@link path}.
8
+ * The identifier for the file data.
13
9
  */
14
10
  id: string;
15
11
  /**
16
- * Additional metadata associated with the virtual file.
12
+ * The timestamp of the virtual file.
17
13
  */
18
- details: Record<string, PrimitiveJsonValue>;
14
+ timestamp: number;
19
15
  /**
20
- * The variant of the file.
16
+ * The type of the file.
21
17
  *
22
18
  * @remarks
23
19
  * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
@@ -25,52 +21,72 @@ interface VirtualFile {
25
21
  * - `entry`: Indicates that the file is an entry point for execution.
26
22
  * - `normal`: Indicates that the file is a standard file without any special role.
27
23
  */
28
- variant: string;
24
+ type: string;
29
25
  /**
30
26
  * The output mode of the file.
31
- *
32
- * @remarks
33
- * This indicates whether the file is intended to be written to the actual file system (`fs`) or kept in the virtual file system (`virtual`).
34
- */
35
- mode: OutputModeType;
36
- /**
37
- * A virtual (or actual) path to the file in the file system.
38
27
  */
39
- path: string;
28
+ mode: string;
40
29
  /**
41
- * The contents of the file.
30
+ * Additional metadata associated with the file.
42
31
  */
43
- code: string | NodeJS.ArrayBufferView;
32
+ properties: Record<string, string>;
44
33
  }
45
- interface VirtualFileMetadata {
34
+ interface VirtualFileData {
46
35
  /**
47
36
  * The identifier for the file data.
48
37
  */
49
- id: string;
38
+ id?: string;
50
39
  /**
51
- * The variant of the file.
40
+ * The contents of the virtual file.
52
41
  */
53
- variant: string;
42
+ code: string;
43
+ /**
44
+ * The type of the file.
45
+ *
46
+ * @remarks
47
+ * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
48
+ * - `builtin`: Indicates that the file is a built-in module provided by the system.
49
+ * - `entry`: Indicates that the file is an entry point for execution.
50
+ * - `chunk`: Indicates that the file is a code chunk, typically used in code-splitting scenarios.
51
+ * - `prebuilt-chunk`: Indicates that the file is a prebuilt code chunk.
52
+ * - `asset`: Indicates that the file is a static asset, such as an image or stylesheet.
53
+ * - `normal`: Indicates that the file is a standard file without any special role.
54
+ */
55
+ type?: string;
54
56
  /**
55
57
  * The output mode of the file.
56
58
  */
57
- mode: string;
59
+ mode?: string;
58
60
  /**
59
61
  * Additional metadata associated with the file.
60
62
  */
61
- properties: Record<string, string>;
63
+ properties?: Record<string, string>;
64
+ }
65
+ interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
66
+ /**
67
+ * An additional name for the file.
68
+ */
69
+ path: string;
70
+ /**
71
+ * The timestamp of the virtual file.
72
+ */
73
+ timestamp: number;
62
74
  }
63
75
  interface ResolveFSOptions {
64
76
  mode?: OutputModeType;
65
77
  }
66
78
  type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
67
79
  interface PowerlinesWriteFileOptions extends ResolveFSOptions {
80
+ /**
81
+ * Should the file skip formatting before being written?
82
+ *
83
+ * @defaultValue false
84
+ */
68
85
  skipFormat?: boolean;
69
86
  }
70
87
  type NodeWriteFileOptions = WriteFileOptions$1;
71
88
  type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
72
- type PowerLinesWriteFileData = Partial<Omit<VirtualFile, "path" | "mode" | "code">> & Pick<VirtualFile, "code">;
73
- type WriteFileData = string | NodeJS.ArrayBufferView | PowerLinesWriteFileData;
89
+ type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
74
90
  interface ResolvePathOptions extends ResolveFSOptions {
75
91
  /**
76
92
  * Should the resolved path include the file extension?
@@ -85,7 +101,7 @@ interface ResolvePathOptions extends ResolveFSOptions {
85
101
  /**
86
102
  * The type of the path to resolve.
87
103
  */
88
- type?: "file" | "directory";
104
+ pathType?: "file" | "directory";
89
105
  }
90
106
  interface VirtualFileSystemInterface {
91
107
  /**
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginContext, a as Plugin } from './runtime-BcuCkovn.cjs';
1
+ import { P as PluginContext, a as Plugin } from './runtime-3fYYMoHw.cjs';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { PrintTreeOptions } from '@alloy-js/core';
4
4
  import { ReactPluginContext } from './types/plugin.cjs';
@@ -9,7 +9,6 @@ import '@stryke/env/get-env-paths';
9
9
  import '@stryke/types/base';
10
10
  import '@stryke/types/package-json';
11
11
  import 'jiti';
12
- import 'oxc-parser';
13
12
  import 'semver';
14
13
  import 'unplugin';
15
14
  import '@babel/core';
@@ -20,12 +19,11 @@ import '@stryke/types/configuration';
20
19
  import '@stryke/types/file';
21
20
  import 'vite';
22
21
  import '@babel/helper-plugin-utils';
22
+ import './fs-B3t0EW52.cjs';
23
+ import 'node:fs';
23
24
  import '@stryke/types/array';
24
25
  import '@stryke/types/tsconfig';
25
26
  import 'typescript';
26
- import './vfs-BS4ST5TO.cjs';
27
- import '@stryke/json/types';
28
- import 'node:fs';
29
27
  import '@deepkit/type';
30
28
  import '@stryke/capnp';
31
29
  import '@stryke/env/types';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginContext, a as Plugin } from './runtime-B0BMR6tw.js';
1
+ import { P as PluginContext, a as Plugin } from './runtime-TlFH2es_.js';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { PrintTreeOptions } from '@alloy-js/core';
4
4
  import { ReactPluginContext } from './types/plugin.js';
@@ -9,7 +9,6 @@ import '@stryke/env/get-env-paths';
9
9
  import '@stryke/types/base';
10
10
  import '@stryke/types/package-json';
11
11
  import 'jiti';
12
- import 'oxc-parser';
13
12
  import 'semver';
14
13
  import 'unplugin';
15
14
  import '@babel/core';
@@ -20,12 +19,11 @@ import '@stryke/types/configuration';
20
19
  import '@stryke/types/file';
21
20
  import 'vite';
22
21
  import '@babel/helper-plugin-utils';
22
+ import './fs-B3t0EW52.js';
23
+ import 'node:fs';
23
24
  import '@stryke/types/array';
24
25
  import '@stryke/types/tsconfig';
25
26
  import 'typescript';
26
- import './vfs-BS4ST5TO.js';
27
- import '@stryke/json/types';
28
- import 'node:fs';
29
27
  import '@deepkit/type';
30
28
  import '@stryke/capnp';
31
29
  import '@stryke/env/types';
@@ -2,7 +2,6 @@ import { EnvPaths } from '@stryke/env/get-env-paths';
2
2
  import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
3
3
  import { PackageJson } from '@stryke/types/package-json';
4
4
  import { Jiti } from 'jiti';
5
- import { ParserOptions, ParseResult } from 'oxc-parser';
6
5
  import { Range } from 'semver';
7
6
  import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginMessage, UnpluginBuildContext } from 'unplugin';
8
7
  import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
@@ -13,10 +12,10 @@ import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configura
13
12
  import { AssetGlob } from '@stryke/types/file';
14
13
  import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
15
14
  import { BabelAPI } from '@babel/helper-plugin-utils';
15
+ import { O as OutputModeType, V as VirtualFileSystemInterface, a as VirtualFile, P as PowerlinesWriteFileOptions } from './fs-B3t0EW52.cjs';
16
16
  import { ArrayValues } from '@stryke/types/array';
17
17
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
18
18
  import ts from 'typescript';
19
- import { O as OutputModeType, V as VirtualFileSystemInterface, a as VirtualFile, P as PowerlinesWriteFileOptions } from './vfs-BS4ST5TO.js';
20
19
 
21
20
  type BabelPluginPass<TState = unknown> = PluginPass & TState;
22
21
  type BabelTransformPluginFilter = (code: string, id: string) => boolean;
@@ -423,6 +422,12 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
423
422
  resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
424
423
  isEntry: boolean;
425
424
  }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
425
+ /**
426
+ * An API object that can be used for inter-plugin communication.
427
+ *
428
+ * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
429
+ */
430
+ api?: Record<string, any>;
426
431
  };
427
432
  type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
428
433
  [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
@@ -1031,7 +1036,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1031
1036
  * @param path - An optional path to write the builtin file to
1032
1037
  * @param options - Options for writing the file
1033
1038
  */
1034
- writeBuiltin: (code: string, id: string, path?: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
1039
+ emitBuiltin: (code: string, id: string, path?: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
1035
1040
  /**
1036
1041
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
1037
1042
  *
@@ -1039,11 +1044,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1039
1044
  * @param path - An optional path to write the entry file to
1040
1045
  * @param options - Options for writing the file
1041
1046
  */
1042
- writeEntry: (code: string, path: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
1043
- /**
1044
- * Parses the source code and returns a {@link ParseResult} object.
1045
- */
1046
- parse: (code: string, id: string, options?: ParserOptions | null) => Promise<ParseResult>;
1047
+ emitEntry: (code: string, path: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
1047
1048
  /**
1048
1049
  * A function to update the context fields using a new user configuration options
1049
1050
  */
@@ -2,7 +2,6 @@ import { EnvPaths } from '@stryke/env/get-env-paths';
2
2
  import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
3
3
  import { PackageJson } from '@stryke/types/package-json';
4
4
  import { Jiti } from 'jiti';
5
- import { ParserOptions, ParseResult } from 'oxc-parser';
6
5
  import { Range } from 'semver';
7
6
  import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginMessage, UnpluginBuildContext } from 'unplugin';
8
7
  import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
@@ -13,10 +12,10 @@ import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configura
13
12
  import { AssetGlob } from '@stryke/types/file';
14
13
  import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
15
14
  import { BabelAPI } from '@babel/helper-plugin-utils';
15
+ import { O as OutputModeType, V as VirtualFileSystemInterface, a as VirtualFile, P as PowerlinesWriteFileOptions } from './fs-B3t0EW52.js';
16
16
  import { ArrayValues } from '@stryke/types/array';
17
17
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
18
18
  import ts from 'typescript';
19
- import { O as OutputModeType, V as VirtualFileSystemInterface, a as VirtualFile, P as PowerlinesWriteFileOptions } from './vfs-BS4ST5TO.cjs';
20
19
 
21
20
  type BabelPluginPass<TState = unknown> = PluginPass & TState;
22
21
  type BabelTransformPluginFilter = (code: string, id: string) => boolean;
@@ -423,6 +422,12 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
423
422
  resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
424
423
  isEntry: boolean;
425
424
  }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
425
+ /**
426
+ * An API object that can be used for inter-plugin communication.
427
+ *
428
+ * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
429
+ */
430
+ api?: Record<string, any>;
426
431
  };
427
432
  type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
428
433
  [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
@@ -1031,7 +1036,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1031
1036
  * @param path - An optional path to write the builtin file to
1032
1037
  * @param options - Options for writing the file
1033
1038
  */
1034
- writeBuiltin: (code: string, id: string, path?: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
1039
+ emitBuiltin: (code: string, id: string, path?: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
1035
1040
  /**
1036
1041
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
1037
1042
  *
@@ -1039,11 +1044,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1039
1044
  * @param path - An optional path to write the entry file to
1040
1045
  * @param options - Options for writing the file
1041
1046
  */
1042
- writeEntry: (code: string, path: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
1043
- /**
1044
- * Parses the source code and returns a {@link ParseResult} object.
1045
- */
1046
- parse: (code: string, id: string, options?: ParserOptions | null) => Promise<ParseResult>;
1047
+ emitEntry: (code: string, path: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
1047
1048
  /**
1048
1049
  * A function to update the context fields using a new user configuration options
1049
1050
  */
@@ -1,11 +1,10 @@
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-BcuCkovn.cjs';
3
+ import '../runtime-3fYYMoHw.cjs';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/base';
6
6
  import '@stryke/types/package-json';
7
7
  import 'jiti';
8
- import 'oxc-parser';
9
8
  import 'semver';
10
9
  import 'unplugin';
11
10
  import '@babel/core';
@@ -16,12 +15,11 @@ import '@stryke/types/configuration';
16
15
  import '@stryke/types/file';
17
16
  import 'vite';
18
17
  import '@babel/helper-plugin-utils';
18
+ import '../fs-B3t0EW52.cjs';
19
+ import 'node:fs';
19
20
  import '@stryke/types/array';
20
21
  import '@stryke/types/tsconfig';
21
22
  import 'typescript';
22
- import '../vfs-BS4ST5TO.cjs';
23
- import '@stryke/json/types';
24
- import 'node:fs';
25
23
  import '@alloy-js/core/jsx-runtime';
26
24
  import '@deepkit/type';
27
25
  import '@stryke/capnp';
@@ -1,11 +1,10 @@
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-B0BMR6tw.js';
3
+ import '../runtime-TlFH2es_.js';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/base';
6
6
  import '@stryke/types/package-json';
7
7
  import 'jiti';
8
- import 'oxc-parser';
9
8
  import 'semver';
10
9
  import 'unplugin';
11
10
  import '@babel/core';
@@ -16,12 +15,11 @@ import '@stryke/types/configuration';
16
15
  import '@stryke/types/file';
17
16
  import 'vite';
18
17
  import '@babel/helper-plugin-utils';
18
+ import '../fs-B3t0EW52.js';
19
+ import 'node:fs';
19
20
  import '@stryke/types/array';
20
21
  import '@stryke/types/tsconfig';
21
22
  import 'typescript';
22
- import '../vfs-BS4ST5TO.js';
23
- import '@stryke/json/types';
24
- import 'node:fs';
25
23
  import '@alloy-js/core/jsx-runtime';
26
24
  import '@deepkit/type';
27
25
  import '@stryke/capnp';
@@ -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-BcuCkovn.cjs';
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-3fYYMoHw.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';
@@ -9,7 +9,6 @@ import '@stryke/env/get-env-paths';
9
9
  import '@stryke/types/base';
10
10
  import '@stryke/types/package-json';
11
11
  import 'jiti';
12
- import 'oxc-parser';
13
12
  import 'semver';
14
13
  import 'unplugin';
15
14
  import '@babel/core';
@@ -19,12 +18,11 @@ import '@storm-software/config/types';
19
18
  import '@stryke/types/file';
20
19
  import 'vite';
21
20
  import '@babel/helper-plugin-utils';
21
+ import '../fs-B3t0EW52.cjs';
22
+ import 'node:fs';
22
23
  import '@stryke/types/array';
23
24
  import '@stryke/types/tsconfig';
24
25
  import 'typescript';
25
- import '../vfs-BS4ST5TO.cjs';
26
- import '@stryke/json/types';
27
- import 'node:fs';
28
26
 
29
27
  type BabelPluginOptions = Partial<BabelUserConfig>;
30
28
  type BabelPluginUserConfig = UserConfig;
@@ -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-B0BMR6tw.js';
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-TlFH2es_.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';
@@ -9,7 +9,6 @@ import '@stryke/env/get-env-paths';
9
9
  import '@stryke/types/base';
10
10
  import '@stryke/types/package-json';
11
11
  import 'jiti';
12
- import 'oxc-parser';
13
12
  import 'semver';
14
13
  import 'unplugin';
15
14
  import '@babel/core';
@@ -19,12 +18,11 @@ import '@storm-software/config/types';
19
18
  import '@stryke/types/file';
20
19
  import 'vite';
21
20
  import '@babel/helper-plugin-utils';
21
+ import '../fs-B3t0EW52.js';
22
+ import 'node:fs';
22
23
  import '@stryke/types/array';
23
24
  import '@stryke/types/tsconfig';
24
25
  import 'typescript';
25
- import '../vfs-BS4ST5TO.js';
26
- import '@stryke/json/types';
27
- import 'node:fs';
28
26
 
29
27
  type BabelPluginOptions = Partial<BabelUserConfig>;
30
28
  type BabelPluginUserConfig = UserConfig;
@@ -1,9 +1,8 @@
1
- import { E as EnvInterface } from '../runtime-BcuCkovn.cjs';
1
+ import { E as EnvInterface } from '../runtime-3fYYMoHw.cjs';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/package-json';
5
5
  import 'jiti';
6
- import 'oxc-parser';
7
6
  import 'semver';
8
7
  import 'unplugin';
9
8
  import '@babel/core';
@@ -14,12 +13,11 @@ import '@stryke/types/configuration';
14
13
  import '@stryke/types/file';
15
14
  import 'vite';
16
15
  import '@babel/helper-plugin-utils';
16
+ import '../fs-B3t0EW52.cjs';
17
+ import 'node:fs';
17
18
  import '@stryke/types/array';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import '../vfs-BS4ST5TO.cjs';
21
- import '@stryke/json/types';
22
- import 'node:fs';
23
21
 
24
22
  interface ReactEnvInterface extends EnvInterface {
25
23
  /**
@@ -1,9 +1,8 @@
1
- import { E as EnvInterface } from '../runtime-B0BMR6tw.js';
1
+ import { E as EnvInterface } from '../runtime-TlFH2es_.js';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/package-json';
5
5
  import 'jiti';
6
- import 'oxc-parser';
7
6
  import 'semver';
8
7
  import 'unplugin';
9
8
  import '@babel/core';
@@ -14,12 +13,11 @@ import '@stryke/types/configuration';
14
13
  import '@stryke/types/file';
15
14
  import 'vite';
16
15
  import '@babel/helper-plugin-utils';
16
+ import '../fs-B3t0EW52.js';
17
+ import 'node:fs';
17
18
  import '@stryke/types/array';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import '../vfs-BS4ST5TO.js';
21
- import '@stryke/json/types';
22
- import 'node:fs';
23
21
 
24
22
  interface ReactEnvInterface extends EnvInterface {
25
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-react",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
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.42",
127
+ "@storm-software/config-tools": "^1.188.47",
128
128
  "@stryke/cli": "^0.12.7",
129
129
  "@stryke/convert": "^0.6.2",
130
130
  "@stryke/fs": "^0.32.13",
131
131
  "@stryke/path": "^0.19.2",
132
132
  "babel-plugin-react-compiler": "^1.0.0",
133
- "@powerlines/alloy": "^0.11.29",
134
- "@powerlines/plugin-babel": "^0.12.29",
135
- "@powerlines/plugin-env": "^0.13.26",
136
- "@powerlines/plugin-plugin": "^0.11.28",
133
+ "@powerlines/alloy": "^0.11.31",
134
+ "@powerlines/plugin-babel": "^0.12.31",
135
+ "@powerlines/plugin-env": "^0.13.28",
136
+ "@powerlines/plugin-plugin": "^0.11.30",
137
137
  "@vitejs/plugin-react": "^5.1.1",
138
138
  "defu": "^6.1.4",
139
- "powerlines": "^0.23.3"
139
+ "powerlines": "^0.23.5"
140
140
  },
141
141
  "devDependencies": {
142
- "@powerlines/nx": "^0.10.20",
143
- "@storm-software/tsup": "^0.2.40",
142
+ "@powerlines/nx": "^0.10.22",
143
+ "@storm-software/tsup": "^0.2.45",
144
144
  "@types/node": "^24.10.1"
145
145
  },
146
146
  "publishConfig": { "access": "public" },
147
- "gitHead": "6e43200541ace2946694195c092642e7ac2f3098"
147
+ "gitHead": "50a08b483769a727b5d7c3a2f38e022e21ee915d"
148
148
  }