-
Notifications
You must be signed in to change notification settings - Fork 40
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
discover c-3po functions by require #44
Comments
it works now! const { t } = require('c-3po');
console.log(t`test text`); // test text |
@Alxpy This works in a library because it's a valid javascript. But it will not be extracted and resolved by babel plugin. |
Any updates on it? Or at least workarounds? It looks like one can use |
@snowwm hey, thanks for using our tool. Going to implement this feature on this week. |
Preminor versions with this functionality are available:
Feel free to report any issues. |
for now c-3po functions are discovered only by imports, but it is also necessary to discover them by require to make everything work on the backend side.
babel-plugin-c-3po should be able to discover this:
The text was updated successfully, but these errors were encountered: