Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

207
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda