@@ -744,6 +744,177 @@ exports[`js handler > trailing slash case 1 1`] = `"document.querySelector(\\"#a
744
744
745
745
exports [` js handler > trailing slash case 2 1` ] = ` "document.querySelector(\\ "#app\\ ").classList.add(\\ "tw-a tw-b tw-a s tw-a\\ ");"` ;
746
746
747
+ exports [` js handler > ts vanilla-0 1` ] = `
748
+ "import './style.css'
749
+ import typescriptLogo from './typescript.svg'
750
+
751
+ import { setupCounter } from './counter'
752
+
753
+ document.querySelector<HTMLDivElement >('#app')!.innerHTML = \`
754
+ <main class =\\"flex tw-fb tw-yb tw-cb tw-ra tw-mc\\">
755
+ <div class =\\"tw-rc tw-gc tw-ub tw-cb tw-ra tw-ob tw-cc tw-ac\\">
756
+ <p
757
+ class =\\"fixed tw-dc tw-jc flex tw-gc tw-va tw-wb tw-pa tw-ja tw-za tw-nc tw-oc tw-ca tw-l tw-v tw-ea tw-sb tw-tb tw-ab tw-qb tw-wa tw-fc tw-m\\">
758
+ Get started by editing
759
+ <code class =\\"tw-ob tw-nb\\">pages/index.tsx</code>
760
+ </p>
761
+ <div
762
+ class =\\"fixed tw-xb tw-dc flex tw-kc tw-gc tw-pb tw-va tw-ka tw-jb tw-vb tw-qa tw-ua tw-sb tw-rb tw-tb tw-kb\\">
763
+ <a class =\\"tw-w flex tw-ba tw-hc tw-tc tw-n tw-ec\\"
764
+ href =\\"https://vercel.com?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
765
+ target =\\"_blank\\" rel =\\"noopener noreferrer\\">
766
+ By
767
+ <img src =\\"\${typescriptLogo}\\" alt =\\"Vercel Logo\\" class =\\"tw-hb\\" priority />
768
+ </a >
769
+ </div>
770
+ </div>
771
+
772
+ <div
773
+ class =\\"relative flex tw-ba tw-na tw-ha tw-ia tw-k tw-u before:bg-gradient-radial tw-da tw-p tw-oa tw-s tw-sa tw-gb tw-la tw-ma tw-o after:bg-gradient-conic tw-y tw-z tw-ta tw-x tw-b tw-d tw-h tw-j tw-g tw-t\\">
774
+ <img class =\\"relative tw-a tw-hb\\" src =\\"/vite.svg\\" alt =\\"Next.js Logo\\"
775
+ priority />
776
+ </div>
777
+
778
+ <div class =\\"tw-ic grid tw-ib tw-bc tw-xa tw-db\\">
779
+ <a href =\\"https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
780
+ class =\\"group tw-mb border tw-aa tw-pc tw-qc tw-ga tw-q tw-fa tw-c tw-e\\"
781
+ target =\\"_blank\\" rel =\\"noopener noreferrer\\">
782
+ <h2 class =\\"tw-lc tw-zb tw-ya\\">
783
+ Docs <span
784
+ class =\\"tw-bb tw-r tw-i tw-f\\">-></span>
785
+ </h2>
786
+ <p class =\\"tw-sc tw-eb tw-cc tw-lb\\">Find in-depth information about Next.js
787
+ features and API.</p>
788
+ </a>
789
+
790
+ <a href =\\"https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
791
+ class =\\"group tw-mb border tw-aa tw-pc tw-qc tw-ga tw-q tw-fa tw-c tw-e\\"
792
+ target =\\"_blank\\" rel =\\"noopener noreferrer\\">
793
+ <h2 class =\\"tw-lc tw-zb tw-ya\\">
794
+ Learn <span
795
+ class =\\"tw-bb tw-r tw-i tw-f\\">-></span>
796
+ </h2>
797
+ <p class =\\"tw-sc tw-eb tw-cc tw-lb\\">Learn about Next.js in an interactive
798
+ course with quizzes!</p>
799
+ </a>
800
+
801
+ <a href =\\"https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
802
+ class =\\"group tw-mb border tw-aa tw-pc tw-qc tw-ga tw-q tw-fa tw-c tw-e\\"
803
+ target =\\"_blank\\" rel =\\"noopener noreferrer\\">
804
+ <h2 class =\\"tw-lc tw-zb tw-ya\\">
805
+ Templates <span
806
+ class =\\"tw-bb tw-r tw-i tw-f\\">-></span>
807
+ </h2>
808
+ <p class =\\"tw-sc tw-eb tw-cc tw-lb\\">Discover and deploy boilerplate example
809
+ Next.js projects.</p>
810
+ </a>
811
+
812
+ <a href =\\"https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
813
+ class =\\"group tw-mb border tw-aa tw-pc tw-qc tw-ga tw-q tw-fa tw-c tw-e\\"
814
+ target =\\"_blank\\" rel =\\"noopener noreferrer\\">
815
+ <h2 class =\\"tw-lc tw-zb tw-ya\\">
816
+ Deploy <span
817
+ class =\\"tw-bb tw-r tw-i tw-f\\">-></span>
818
+ </h2>
819
+ <p class =\\"tw-sc tw-eb tw-cc tw-lb\\">Instantly deploy your Next.js site to a
820
+ shareable URL with Vercel.</p>
821
+ </a>
822
+ </div>
823
+ </main>
824
+ \`
825
+
826
+ setupCounter(document.querySelector<HTMLButtonElement>('#counter')!)
827
+ "
828
+ `;
829
+
830
+ exports[`js handler > tsx app0 1`] = `
831
+ " import { useState } from ' react'
832
+ import reactLogo from ' ./assets/react.svg'
833
+
834
+ import ' ./App.css'
835
+
836
+ function App() {
837
+ const [count , setCount ] = useState (0 )
838
+
839
+ return (
840
+ <main className =\\"flex tw-fb tw-zb tw-cb tw-ra tw-nc\\">
841
+ <div className =\\"tw-sc tw-hc tw-vb tw-cb tw-ra tw-pb tw-dc tw-bc\\">
842
+ <p className =\\"fixed tw-ec tw-kc flex tw-hc tw-va tw-xb tw-pa tw-ja tw-za tw-oc tw-pc tw-ca tw-l tw-v tw-ea tw-tb tw-ub tw-ab tw-rb tw-wa tw-gc tw-m\\">
843
+ Get started by editing
844
+ <code className =\\"tw-pb tw-ob\\">pages/index.tsx</code>
845
+ </p>
846
+ <div className =\\"fixed tw-yb tw-ec flex tw-lc tw-hc tw-qb tw-va tw-ka tw-jb tw-wb tw-qa tw-ua tw-tb tw-sb tw-ub tw-kb\\">
847
+ <a
848
+ className =\\"tw-w flex tw-ba tw-ic tw-uc tw-n tw-fc\\"
849
+ href =\\"https://vercel.com?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
850
+ target =\\"_blank\\"
851
+ rel =\\"noopener noreferrer\\"
852
+ >
853
+ By <img src =\\"/vite.svg\\" alt =\\"Vercel Logo\\" className =\\"tw-hb\\" width = { 100 } height = { 24 } />
854
+ </a >
855
+ < / div >
856
+ < / div >
857
+
858
+ <div className =\\"relative flex tw-ba tw-na tw-ha tw-ia tw-k tw-u before:bg-gradient-radial tw-da tw-p tw-oa tw-s tw-sa tw-gb tw-la tw-ma tw-o after:bg-gradient-conic tw-y tw-z tw-ta tw-x tw-b tw-d tw-h tw-j tw-g tw-t\\">
859
+ <img className =\\"relative tw-a tw-hb\\" src = { reactLogo } alt =\\"Next.js Logo\\" width = { 180 } height = { 37 } />
860
+ < / div >
861
+
862
+ <div className =\\"tw-jc grid tw-ib tw-cc tw-xa tw-db\\">
863
+ <a
864
+ href =\\"https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
865
+ className =\\"group tw-mb border tw-aa tw-qc tw-rc tw-ga tw-q tw-fa tw-c tw-e\\"
866
+ target =\\"_blank\\"
867
+ rel =\\"noopener noreferrer\\"
868
+ >
869
+ <h2 className = { \` tw-mc tw-ac tw-ya\` }>
870
+ Docs <span className =\\"tw-bb tw-r tw-i tw-f\\">-></span>
871
+ </h2>
872
+ <p className = { \` tw-tc tw-eb tw-dc tw-lb\` }>Find in-depth information about Next.js features and API.</p>
873
+ </a>
874
+
875
+ <a
876
+ href =\\"https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
877
+ className =\\"group tw-mb border tw-aa tw-qc tw-rc tw-ga tw-q tw-fa tw-c tw-e\\"
878
+ target =\\"_blank\\"
879
+ rel =\\"noopener noreferrer\\"
880
+ >
881
+ <h2 className = { \` tw-mc tw-ac tw-ya\` }>
882
+ Learn <span className =\\"tw-bb tw-r tw-i tw-f\\">-></span>
883
+ </h2>
884
+ <p className = { \` tw-tc tw-eb tw-dc tw-lb\` }>Learn about Next.js in an interactive course with quizzes!</p>
885
+ </a>
886
+
887
+ <a
888
+ href =\\"https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
889
+ className =\\"group tw-mb border tw-aa tw-qc tw-rc tw-ga tw-q tw-fa tw-c tw-e\\"
890
+ target =\\"_blank\\"
891
+ rel =\\"noopener noreferrer\\"
892
+ >
893
+ <h2 className = { \` tw-mc tw-ac tw-ya\` }>
894
+ Templates <span className =\\"tw-bb tw-r tw-i tw-f\\">-></span>
895
+ </h2>
896
+ <p className = { \` tw-tc tw-eb tw-dc tw-lb\` }>Discover and deploy boilerplate example Next.js projects.</p>
897
+ </a>
898
+
899
+ <a
900
+ href =\\"https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app\\"
901
+ className =\\"group tw-mb border tw-aa tw-qc tw-rc tw-ga tw-q tw-fa tw-c tw-e\\"
902
+ target =\\"_blank\\"
903
+ rel =\\"noopener noreferrer\\"
904
+ >
905
+ <h2 className = { \` tw-mc tw-ac tw-ya\` }>
906
+ Deploy <span className =\\"tw-bb tw-r tw-i tw-f\\">-></span>
907
+ </h2>
908
+ <p className = { \` tw-tc tw-eb tw-dc tw-lb\` }>Instantly deploy your Next.js site to a shareable URL with Vercel.</p>
909
+ </a>
910
+ </div>
911
+ </main>
912
+ )
913
+ }
914
+
915
+ export default App"
916
+ ` ;
917
+
747
918
exports [` js handler > z-10 not transform 1` ] = `
748
919
"{
749
920
className : \\" tw-a tw-b tw-c tw-d tw-e tw-f tw-g tw-h\\ " ;
0 commit comments