vite-plugin-vue
vite-plugin-vue copied to clipboard
fix: playground/vue-jsx, fix import TsImportFile extension in TsImport component
Description
<template>
<h2>Ts Import</h2>
<p class="ts-import">{{ foo }}</p>
<Bar />
</template>
<script setup lang="tsx">
import { foo } from './TsImportFile.js'
const Bar = () => (
<div class="bar">
<p>Bar</p>
</div>
)
</script>
The purpose of this component is to test the import of .ts files, but here it actually has a .js extension. I think it would be more reasonable to remove the .js extension.
import { foo } from './TsImportFile'
What is the purpose of this pull request?
- [ ] Bug fix
- [ ] New Feature
- [ ] Documentation update
- [X] Other
Before submitting the PR, please make sure you do the following
- [X] Read the Contributing Guidelines.
- [X] Read the Pull Request Guidelines and follow the PR Title Convention.
- [X] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
- [X] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g.
fixes #123). - [X] Ideally, include relevant tests that fail without this PR but pass with it.