From 272e9b82ebddaa33cbc01cc8b1efd8a36ec3c645 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 2 Nov 2020 22:33:43 +1100 Subject: fix(cli): inject helpers when transpiling via swc (#8221) Fixes #8212 --- cli/tests/subdir/more_decorators.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cli/tests/subdir/more_decorators.ts (limited to 'cli/tests/subdir/more_decorators.ts') 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"); + } +} -- cgit v1.2.3