spencermountain/unrequired

Support for decorators

Opened this issue · 1 comments

We use TypeORM and get the following when attempting to use the tool: SyntaxError: Unexpected character '@' (6:0), the line in question being @EntityRepository(Tokens). Not sure if adding features on a case-by-case basis or attempting to so the compilation using project's babel configuration is the best solution

right - that's a very clever idea.
i mean, maybe it could also grab anything inside scripts.build, and throw some flags on the end?
I agree that this could be a lot smarter, or at minimum, have a bunch of flags for various javascript features.
It's been cool to see people use this library. I fully just built it for myself, and now maybe we should think how it should have been written in the first place.
Open to anything!