Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

357
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!