typescript 0.9.1 source maps not working anymore
i upgraded to version 0.9.1 of typescript... since then the source maps are no longer being downloaded and liked to by chrome... the source maps are in fact being generated but it's just that they are not being linked to... after doing a little bit of searching i ran across this link: TypeScript source map files don't work with Chrome. sure enough i am experiencing a similar problem... what's happening is that the source map linking is using //# syntax instead of //@... if i manually change the js file to the latter, chrome once again picks up the source map... i also stumbled across this link: http://typescript.codeplex.com/discussions/452751. it looks like this may be a known issue but i don't see any resolution to the problem, if any... is there any sort of workaround to get source maps working again with chrome and typescript 0.9.1?????
thank you
They changed the format of the source map reference at the bottom of your *.js file. Change:
//# sourceMappingURL=[filename].js.map
to
//@ sourceMappingURL=[filename].js.map
See https://typescript.codeplex.com/workitem/1445 for more. It looks like newer versions of Chrome will support this new format.
链接地址: http://www.djcxy.com/p/66982.html上一篇: 为什么Chrome在更改时不更新Typescript源文件?
下一篇: 打字稿0.9.1源地图不再工作