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

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