-
-
Notifications
You must be signed in to change notification settings - Fork 433
add documentation for appendTsSuffixTo #359
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
Conversation
No problem - thanks for this! My machine has just died on me but once I get it up and running again I'll look at cutting a new release |
BTW I managed to get a fix into our comparison test pack to ignore the |
I would suggest this might be handled by vue-ts-loader, which I want to migrate to be a preconfigured ts-loader. It is really generous for ts-loader to support appendTsSuffix. But handling vue-specific quirks should be the task for vue-ts-loader. Also, I think vuejs would use absolute paths every where(regardless of path-separator), I just manually deleted the absolute path in output to avoid personal information leakage...:( |
Ah! That makes sense 😄 I'll have a ponder about this.
Agreed. Does |
Very useful. vue-ts-loader will have to fork a copy of ts-loader if this option is not added. I can handle vue's path looking, export format or what ever vue specific in other loader. But appending suffix is simply mission impossible if no change is made underlying ts-loader. I would even think this might be useful for hash bang file. TypeStrong/ts-node#116 |
Then it will ship 🚢 😄 So is the idea that Just so you know, the longer term aim is to join together awesome-typescript-loader and ts-loader. The initial steps of that will be ensuring both loaders support the same options. So if you need |
I could only implore you to keep this option. Frankly, no many users use TS + Vue. vue-ts-loader merely have 30 stars on github. And on npm only 200+ downloads last month. As a comparison, ts-loader has 294,548 downloads last month. Yet the overhead added to ts-loader is relatively small (adding suffix if filename matches) and would hardly break other plugins ( except vue-loader), and this is the only loader I could find to support ts in vue file. Reference: microsoft/TypeScript#10939 non-ts extension would hardly be supported. However, I can foresee that with the combination of ts-loader and ATL the code base will grow larger and many new features will be added. If the cost for this option is no longer small, I'm fine to remove it. |
As you say:
So as it stands I think it's fine and we'll include it. If there's some reason in the future where it becomes problematic we'll certainly discuss it before taking any action. But I'd imagine that this can carry on being supported. |
Sorry for the delay, get quite busy these days.