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 ba04143 commit 4f47a9d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/core/src/generators/svelte/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
import { types } from '@babel/core';
import { processSignalsForCode } from '../../helpers/plugins/process-signals';
import { isSlotProperty, replaceSlotsInString } from '../../helpers/slots';
import { stripStateAndPropsRefs } from '../../helpers/strip-state-and-props-refs';
import { MitosisComponent } from '../../types/mitosis-component';
import { ToSvelteOptions } from './types';

export const transformReactiveValues = ({ json }: { json: MitosisComponent }) => {
return processSignalsForCode({
json,
mapSignal: (name) => types.identifier('$' + name),
});
};

export const stripStateAndProps =
({ options, json }: { options: ToSvelteOptions; json: MitosisComponent }) =>
(code: string) =>
Expand Down

0 comments on commit 4f47a9d

Please sign in to comment.