-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Labels
kind: questionThis is a usage or similar questionThis is a usage or similar questionscope: docsDocumentation could be improved. Or changes that only affect docsDocumentation could be improved. Or changes that only affect docs
Description
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
if (!pluginOptions.typescript) { | |
pluginOptions.typescript = require("typescript"); | |
} |
I'm wondering why you would ever want to manually set the typescript
option to require('typescript')
then. Wouldn't calling require('typescript')
in rollup.config.js
always give the same answer as require('typescript')
in the plugin?
Metadata
Metadata
Assignees
Labels
kind: questionThis is a usage or similar questionThis is a usage or similar questionscope: docsDocumentation could be improved. Or changes that only affect docsDocumentation could be improved. Or changes that only affect docs