This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
Overriding TypeScript version #4
Closed
Description
Docs are stating that TS version used by this plugin can be easily overridden giving this code snippet as an example:
import typescript from 'rollup-plugin-typescript';
import * as ts from 'typescript';
export default {
entry: 'main.ts',
plugins: [
typescript({
target: ts.ScriptTarget.ES6
sourceMap: true
})
]
}
Is importing import * as ts from 'typescript';
enough to override tsc version? If so, what kind of node black magic would be involved here? I've played with this locally and couldn't override TS version.
Is there are clever trick at play here or is the override option missing from the impl?