Skip to content

Question: What is the point of the typescript option? #252

@brandon-leapyear

Description

@brandon-leapyear

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: questionThis is a usage or similar questionscope: docsDocumentation could be improved. Or changes that only affect docs

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions