Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite.config.ts import relative ts file cause error #340

Closed
csr632 opened this issue Jun 3, 2020 · 0 comments
Closed

vite.config.ts import relative ts file cause error #340

csr632 opened this issue Jun 3, 2020 · 0 comments

Comments

@csr632
Copy link
Member

csr632 commented Jun 3, 2020

Describe the bug

vite.config.ts import relative .ts file cause error.
vite.config.ts also doesn't support sourcemap.

Reproduction

Just change /playground/plugins/jsPlugin.js filename with .ts extension.
The playground will fail to start.

Add throw error in the file. You will find the sourcemap is broken when logging error.

Context

Rollup by default don't resolve extensions other than .js: rollup/rollup#1052 (comment)

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant