• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

264
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?

almost 3 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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda