Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
samijaber committed Jun 27, 2023
1 parent 4f47a9d commit 99236f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/core/src/generators/svelte/svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { isMitosisNode } from '../../helpers/is-mitosis-node';
import { initializeOptions } from '../../helpers/merge-options';
import { stripGetter } from '../../helpers/patterns';
import { CODE_PROCESSOR_PLUGIN } from '../../helpers/plugins/process-code';
import { getSignalTypePlugin } from '../../helpers/plugins/process-signals';
import { renderPreComponent } from '../../helpers/render-imports';
import { isSlotProperty } from '../../helpers/slots';
import { stripMetaProperties } from '../../helpers/strip-meta-properties';
Expand Down Expand Up @@ -169,7 +168,6 @@ export const componentToSvelte: TranspilerGenerator<ToSvelteOptions> =
return (x) => x;
}
}),
getSignalTypePlugin({ target: 'svelte' }),
];

// Make a copy we can safely mutate, similar to babel's toolchain
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/helpers/plugins/process-signals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { replaceNodes } from '../replace-identifiers';
import { createCodeProcessorPlugin } from './process-code';
import { CodeType } from './process-code/types';

export const processSignalType =
const processSignalType =
({ json, target, codeType }: { json: MitosisComponent; target: Target; codeType?: CodeType }) =>
(code: string): string => {
if (json.signals?.signalTypeImportName) {
Expand All @@ -24,7 +24,7 @@ export const processSignalType =
return code;
};

export const processSignalsForCode =
const processSignalsForCode =
({ json, mapSignal }: { json: MitosisComponent; mapSignal: SignalMapper }) =>
(code: string): string => {
const nodeMaps: { from: Node; to: Node }[] = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/parsers/jsx/types-identification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const getSignalImportName = (code: string): string | undefined => {
return foundSignalUsage ? signalImportName : undefined;
};

export const addSignalImport = ({ code, target }: { code: string; target: Target }) => {
const addSignalImport = ({ code, target }: { code: string; target: Target }) => {
const signalType = getSignalMappingForTarget(target);

if (!signalType) {
Expand Down

0 comments on commit 99236f7

Please sign in to comment.