Code Position: esbuild-decorators.ts
Regular expressions don't work when decorator functions start with '$'. for example:
function Test(target: any, key?: string, pKey?: any) {
if(!key) {
return
}
console.log(">>>", Reflect.getMetadata("design:type", target, key))
}
@$Test
class Nardy {
@$Test
private name: Date = new Date()
@$Test
setName() {}
}
I think we should judge the legal function name instead of limiting it to letters, numbers and underscores next the '@' character
Code Position: esbuild-decorators.ts
Regular expressions don't work when decorator functions start with '$'. for example:
I think we should judge the legal function name instead of limiting it to letters, numbers and underscores next the '@' character