ts-template
ts-template copied to clipboard
Sourcemap not working
Hi,
cause webpack is packing all together it is quiet difficult to find the source of an error. I thought this would be easy to fix / config but I give up. May you can help?
Example car.ts
public go(msg: string): string {
msg = null;
console.log(msg.length);
}
Results in stack trace - line number is 121 but actually is 23 in the Car.ts
file:
TypeError: Cannot read property 'length' of null
at <Jasmine>
at Car.go (test/sample_test.js:121:25)
at UserContext.<anonymous> (test/sample_test.js:163:33)
at <Jasmine>