diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-11-02 22:33:43 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 22:33:43 +1100 |
commit | 272e9b82ebddaa33cbc01cc8b1efd8a36ec3c645 (patch) | |
tree | 33ec0f339eeaa302ca05543a7110019468ac4b07 /cli/tests/subdir | |
parent | fdcc78500cc1aff8c87d76abd1692e79977ac9cc (diff) |
fix(cli): inject helpers when transpiling via swc (#8221)
Fixes #8212
Diffstat (limited to 'cli/tests/subdir')
-rw-r--r-- | cli/tests/subdir/more_decorators.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/tests/subdir/more_decorators.ts b/cli/tests/subdir/more_decorators.ts new file mode 100644 index 000000000..a67ae3fd6 --- /dev/null +++ b/cli/tests/subdir/more_decorators.ts @@ -0,0 +1,18 @@ +/* eslint-disable */ +function a() { + console.log("a(): evaluated"); + return ( + _target: any, + _propertyKey: string, + _descriptor: PropertyDescriptor, + ) => { + console.log("a(): called"); + }; +} + +export class B { + @a() + method() { + console.log("method"); + } +} |