Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
how to preprocess .js file comment (at compile time) with babel?

I'm using babel-plugin-i18next-extract to extract translation strings from my project. However, there are some data that may change over time in some .yaml files which can not easily extracted programmatically. I'm thinking about using the Comment hints provided by this plugin, but these comment hints need to take dynamic content as attribute to make it work. So I need a way to preprocess the comments at compile time to generate this dynamic content (basically a string array). I've looked into babel-plugin-macros and babel-plugin-preval but none of them seems to support preprocessing the comments. What should I do to achieve this goal then?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!