Skip to content

crisbeto/ts-4.4-synthetic-comment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-4.4-synthetic-comment

Steps to reproduce the issue

  1. Clone this repo.
  2. Run npm install.
  3. Run npm run transform and observe the console output.

Expected output

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Foo = void 0;
const tslib_1 = require("tslib");
function MyDecorator(cls, ...args) {
    return cls;
}
let Foo = class Foo {
};
/* This should only exist once */
Foo.customStaticProp = 'hello';
Foo = (0, tslib_1.__decorate)([
    MyDecorator
], Foo);
exports.Foo = Foo;

Actual output

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Foo = void 0;
const tslib_1 = require("tslib");
function MyDecorator(cls, ...args) {
    return cls;
}
let Foo = class Foo {
};
/* This should only exist once */
/* This should only exist once */
Foo.customStaticProp = 'hello';
Foo = (0, tslib_1.__decorate)([
    MyDecorator
], Foo);
exports.Foo = Foo;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published