-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require some babel parser configuration #17
Comments
Thanks for reporting this. It can be fixed by adding i.e. return parse(code, {
sourceType: "module",
- plugins: ["typescript", "jsx", "optionalChaining"],
+ plugins: ["typescript", "jsx", ["decorators",{ "decoratorsBeforeExport": true }]],
}); I will fix it in next release. |
now it's fixed in 0.2.3: https://github.com/mistlog/typedraft/releases/tag/0.2.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to use typedraft on a file that is using decorator function, got error complaining about babel parser configuration. What is the suggested way to deal with this issue?
Typedraft source code:
Error message:
The text was updated successfully, but these errors were encountered: