@builder.io/mitosis 0.2.9 → 0.2.10
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,4 +1,5 @@
|
|
|
1
1
|
import type { ParseMitosisOptions } from '../parsers/jsx/types';
|
|
2
|
+
import { targets } from '../targets';
|
|
2
3
|
import type { MitosisComponent } from './mitosis-component';
|
|
3
4
|
import { BaseTranspilerOptions } from './transpiler';
|
|
4
5
|
export type Format = 'esm' | 'cjs';
|
|
@@ -6,14 +7,18 @@ export type Language = 'js' | 'ts';
|
|
|
6
7
|
interface TranspilerOptions {
|
|
7
8
|
format?: Format;
|
|
8
9
|
}
|
|
9
|
-
type Targets = typeof
|
|
10
|
+
type Targets = typeof targets;
|
|
10
11
|
export type Target = keyof Targets;
|
|
11
12
|
export type GeneratorOptions = {
|
|
12
13
|
[K in Target]: NonNullable<Parameters<Targets[K]>[0]> & {
|
|
13
14
|
transpiler?: TranspilerOptions;
|
|
14
15
|
};
|
|
15
16
|
};
|
|
17
|
+
export type generatorsOption = {
|
|
18
|
+
[K in Target]: NonNullable<Targets[K]>;
|
|
19
|
+
};
|
|
16
20
|
export type MitosisConfig = {
|
|
21
|
+
generators?: generatorsOption;
|
|
17
22
|
commonOptions?: Omit<BaseTranspilerOptions, 'experimental'>;
|
|
18
23
|
/**
|
|
19
24
|
* List of targets to compile to.
|