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

Support for script src attribute #23

Open
repomaa opened this issue Aug 10, 2018 · 1 comment
Open

Support for script src attribute #23

repomaa opened this issue Aug 10, 2018 · 1 comment

Comments

@repomaa
Copy link

repomaa commented Aug 10, 2018

Would be nice if

<script src="./MyComponent.ts"></script>

would be supported.

Current workaround is a bit ugly:

<script lang="ts">
export { default } from "./MyComponent";
</script>
@whitetrefoil
Copy link

Just wonder why you need vuetype since you already have a real .ts file.

I just found this project during searching for a solution provide me better experience in IDEA. Currently my solution is using a separated .ts file then import it using "src" in .vue file. When importing in a .ts file without extnames, IDEA's tsc will resolve it to the real .ts file, while during building webpack will import the .vue file. Everything is perfect except some little helpers in IDEA's VueJS plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants