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
Output filename with ts-loader do not rename the declaration files

I have a server-only export that I name index.server.ts. I want this file to be renamed server.js so that import foobar from "my-package/server points to this file.

If I set an output filename in Webpack like this:

{
   outuput: {
      filename: "server.js"
   }
}

The filename will be server.js, but the type declaration stays index.server.d.ts, therefore the import from other TypeScript packages fails, because TypeScript cannot find the right declaration file.

Any idea what's the expected behaviour/how to bypass this?

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