This says that if the option isn't set, the plugin will automatically set it to require('typescript').
|
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?
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
typescriptoption torequire('typescript')then. Wouldn't callingrequire('typescript')inrollup.config.jsalways give the same answer asrequire('typescript')in the plugin?