我有几个库,我被迫通过<script>标签包含它们。但是,我仍然希望在 .ts 中对这些外部库使用等效的导入语句,以便获得正确的输入。我如何告诉 Vite 不要捆绑这些特定的导入,并删除它们的导入语句?
<script>
typescript vite
typescript ×1
vite ×1