Commit 6b2a4da
adrian
allow the import of ts where ts is allowed.
test: imports ts on bun and test catch error in npm
feat(TemplateProcessor): add support for importing TypeScript files
fix(TemplateProcessor): handle TypeScript imports with error handling
test(TemplateProcessor): add tests for importing JavaScript and TypeScript files
Add support for importing TypeScript files in environments that support it,
and provide error handling for environments that do not. Add tests to
verify the functionality of importing both JavaScript and TypeScript files.1 parent 8cb9cfc commit 6b2a4da
2 files changed
+54
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
| 668 | + | |
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
| |||
1680 | 1680 | | |
1681 | 1681 | | |
1682 | 1682 | | |
| 1683 | + | |
1683 | 1684 | | |
1684 | 1685 | | |
1685 | 1686 | | |
| |||
1989 | 1990 | | |
1990 | 1991 | | |
1991 | 1992 | | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
1992 | 2003 | | |
1993 | 2004 | | |
1994 | 2005 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1370 | 1370 | | |
1371 | 1371 | | |
1372 | 1372 | | |
| 1373 | + | |
| 1374 | + | |
1373 | 1375 | | |
1374 | 1376 | | |
1375 | 1377 | | |
| |||
3649 | 3651 | | |
3650 | 3652 | | |
3651 | 3653 | | |
| 3654 | + | |
| 3655 | + | |
| 3656 | + | |
| 3657 | + | |
| 3658 | + | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
3652 | 3694 | | |
0 commit comments