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?