-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Use compiler enum than magic number #362
Conversation
Cool! Is this still an issue though?: microsoft/TypeScript#4690 |
Don't worry, I only access |
LGTM 👍 |
actually I found typescript has been required in servicesHost, in |
That's a good point. I'm wondering if I've changed something by mistake or if @jbrantly previously decided to use this approach. @jbrantly would you be able to provide any insight here? Is it ok to be requiring typescript as we are or is that something we ought to avoid? It looks like using Line 6 in 9a2e408
|
BTW @HerringtonDarkholme ts-loader 1.1.0 (with vue support) has 🚢 😄 |
@johnnyreilly can this be merged? |
Well @jbrantly hasn't come back with a reason why not. That being the case I figure we should merge this; since we seem to be |
Apologies, I missed the first mention. The original idea was to not require('typescript') in the output generated by TypeScript so as to be able to support custom compilers, that's correct. However, the TypeScript definitions were still used, which didn't generate a |
Regarding the current use of |
You're right - I'll take a look at this.
In that case let's not merge for now. When that issue is resolved let's merge then |
I don't think this is an issue because we can always use |
I see the red 😭 It only occurs on the 2.1.1 build. Without having looked into it I'm going to speculate that is as expected:
To avoid confusion I suggest we do the following:
I can look into 1. but probably not until this weekend as I've a very busy week ahead. I don't mind if others want to pick this up first - but if no-one does I will. |
Oh and let's do 2 as distinct from 1 to avoid confusion |
Okay I've done 1. Took less time than expected |
That's a good point and something I didn't realize when first looking at this. I believe you're probably right. |
I don't get the reference? Were there problems with |
Good effort though! 👍 |
Exactly. Then to support both TS2.1 and below we need to add another layer of abstraction, and it is workaround anyway. That just does not worth. I would prefer magic number workaround. |
fix #86