-
Notifications
You must be signed in to change notification settings - Fork 61
fixExportClass.ts no longer works. #44
Comments
@AppShipIt Can you elaborate on the problem? I can't really tell what input code resulted in what output. Also, I believe |
Corrected thanks!
From a shell session with a recent drop of TS 1.9: $ ./node_modules/typescript/bin/tsc --version
Version 1.9.0-dev.20160428-1.0
$ INPUT='export class A{}'
$ node -e "
> const ts=require('typescript');
> console.log(ts.transpileModule('$INPUT',{
> compilerOptions:{module:ts.ModuleKind.ES2015}
> }).outputText)"
var A = (function () {
function A() {
}
return A;
}());
A = A;
$ INPUT='class A{};export {A}'
$ node -e "const ts=require('typescript');console.log(ts.transpileModule('$INPUT',{compilerOptions:{module:ts.ModuleKind.ES2015}}).outputText)"
var A = (function () {
function A() {
}
return A;
}());
;
export { A }; Repeating each variation from the description should yield my commented text as the last line.
Looking again (with more rest) your regex will just skip |
Have you tried overriding the TypeScript version used by the plugin to test this? I think the plugin should be handling this. typescriptPlugin({
typescript: require('typescript')
}) |
Oh I see what you're doing my bad! |
Using
typescript@next
I get the following:The text was updated successfully, but these errors were encountered: