-
Notifications
You must be signed in to change notification settings - Fork 87
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
Couple of typescript related issues #3
Comments
Thanks for using this plugin. For the first point, is not a bug in this plugin, because you used The second point strictly is not a bug. The reason is when all files are in one directory and without Currently you can add |
@qmhc For the first point, do you mean in package.json I should do
Regarding the second point the dts file is generated as |
@sanjade If you only want to check your typescript you needn't add The {
"main": "dist/viteproject.cjs.js",
"types": "dist/main.d.ts",
} I recommend you to try
|
Thanks a lot! |
I'm using vite for my vanilla typescript project along with this plugin. I found few bugs with this library,
/@/
, then the emitted declarations includes incorrect path. For example,I have
constants.ts
,And in
main.ts
I have following,Then the emitted declaration file has
src/constants
which is an incorrect path,Here's the source code: https://github.com/sanjade/js-bug
The text was updated successfully, but these errors were encountered: