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

163
Vistas
way to perform ast manipulation on webpack output code with a plugin (patch webpack_require)

Goal

I'm trying to personalize the webpack output to add some information when requiring a module like if the module is currently loading or already loaded (webpack_require).

Currently i'm patching the webpack_require at asset level creating a new ConcatSource, but this is a short term solution.

How can i manipulate the webpack emitted code (not the .ts/.js original files,just the module entry code and other webpack glue) in a safe and efficient way?

Usage

This is required to create a zero configuration module discovery (discover and inject Nestjs stuff automatically) that support circular dependence.

I tried to look around and found this: https://github.com/adierkens/webpack-inject-plugin but is unmaintained and it's not working anymore.

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