Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

216
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda