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

368
Vistas
Webpack: transpile single from TS to JS

I'm using webpack to bundle my app.

I need one specific file not be bundled but transpiled from typescript to javascript. I dont want my imports to be bundled within the file.

For example if I have this typescript:

import { Service } from '@xyz/server';

class MyService extends Service {

constructor(dataPath) {
    super(dataPath);
  }
}

And it need to be transpiled to something like this:

Object.defineProperty(exports, "__esModule", { value: true });
var server_1 = require("@xyz/server");
var MyService = /** @class */ (function (_super) {
__extends(MyService, _super);
function MyService(dataPath) {
    var _this = _super.call(dataPath) || this;
    return _this;
  }
return MyService;
}(server_1.Service));

Is there a way to do this with webpack or a webpack plugin?

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