Questions tagged [ts-loader]

214 questions
0
votes
1 answer

Exported TypeScript Class not included in WebPack bundle if not used directly

I'm converting a javascript project with Angular 1.x to WebPack and TypeScript (using ts-loader). I got it mostly working, but I'm running into trouble when ts-loader seems to be optimizing my scripts out of the bundle when the exports are not…
Benny Bottema
  • 11,111
  • 10
  • 71
  • 96
0
votes
0 answers

My WebpackPlugin "done" event keeps being triggered

Im trying to write my own WebpackPlugin. It works just fine (it moves some generated files, and then combines those). It listens to the 'done' event of the webpack compiler. But the following happens: compiler.plugin('done', (stats) => { …
Flion
  • 10,468
  • 13
  • 48
  • 68
0
votes
0 answers

Webpack/TypeScript Raising Errors When node_modules is Excluded

I have the following Webpack and TypeScript configs: webpack.config.js module.exports = { entry: { dev: './src/ts/site' }, output: { filename: './com/js/site.js' }, resolve: { extensions: ['', '.ts',…
Sandy Gifford
  • 7,219
  • 3
  • 35
  • 65
0
votes
1 answer

How to unit test TypeScript files with test runner in a webpack project

I have the following setup: Build process with webpack and ts-loader Wanting to use test runner such as Karma to unit test the TS files How do I best unit test TypeScript files with test runner in this webpack project? Its obvious to me how to do…
Nikos
  • 7,295
  • 7
  • 52
  • 88
1 2 3
14
15