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

169
Visualizações
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 à 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