-
Notifications
You must be signed in to change notification settings - Fork 71
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
Question: What is the point of the typescript
option?
#252
Comments
You might want to use multiple versions of typescript for example, or have it in a non-standard place. |
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ I see. But the docs say
You would never literally do |
Yeah, |
typescript
option?
Worth noting, For example, if it somehow ended up like this:
You'd have two different TS versions depending on where Realistically, that shouldn't really happen unless EDIT: actually that seems to have been the original purpose of the |
You can also use this for alternative TS implementations, such as |
This says that if the option isn't set, the plugin will automatically set it to
require('typescript')
.rollup-plugin-typescript2/src/index.ts
Lines 72 to 74 in 5ce7676
I'm wondering why you would ever want to manually set the
typescript
option torequire('typescript')
then. Wouldn't callingrequire('typescript')
inrollup.config.js
always give the same answer asrequire('typescript')
in the plugin?The text was updated successfully, but these errors were encountered: