Re:TypeScript 2.4 RC
by antihero on Monday June 12, 2017 @06:36PM
(#14541673)
I wonder how to get it all working with webpack? Does it use require.ensure?
[ Parent
| on HN ]
Re:TypeScript 2.4 RC
by bradleyayers on Monday June 12, 2017 @07:12PM
(#14541883)
Webpack 2 supports import()
Re:TypeScript 2.4 RC
by johnny_reilly on Tuesday June 13, 2017 @06:01AM
(#14543798)
Yup - one of the maintainers of ts-loader here. I haven't had chance to test it yet but I'm pretty confident this should just work with ts-loader (and awesome-typescript-loader as well I should think)
Hey, can I ask you a quick question (and I understand if you can't respond). I'm using React + TypeScript for some server-side stuff, but because I'm using style-loader/css-loader, I have to use webpack.
Everything works, including sourcemaps, but when I debug using VSCode, setting a breakpoint puts me in a 'read-only' version of the file. It's not a lot of 'work' to switch to the actual file, but long-term it's hella inconvenient.
Is there a way to get VSCode (or another editor) to drop me into the actual file, or is this just a consequence of using webpack?