Skip to content

Commit

Permalink
Preserve types for SolidJS (BuilderIO#984)
Browse files Browse the repository at this point in the history
* preserve solid types

* Fix typescript extension for solidjs
  • Loading branch information
elfpie authored Jan 18, 2023
1 parent e483a27 commit 3c4d379
Show file tree
Hide file tree
Showing 4 changed files with 956 additions and 272 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/build/helpers/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export const getFileExtensionForTarget = ({
case 'alpine':
case 'html':
return '.html';
case 'solid':
return '.jsx';
case 'svelte':
return '.svelte';
case 'swift':
Expand All @@ -30,6 +28,7 @@ export const getFileExtensionForTarget = ({
return '.ts';
case 'lit':
return '.ts';
case 'solid':
case 'qwik':
return isTs && type === 'filename' ? '.tsx' : '.jsx';
case 'react':
Expand Down
Loading

0 comments on commit 3c4d379

Please sign in to comment.