简体   繁体   中英

Source maps for Intern

How do I use source maps with Intern?

problem: tests are using minified code by default if source maps are available, how can they be leveraged when using Intern?

Intern doc says they support source maps but I am not finding the steps to use source maps

Intern's source map support should be transparent -- if source maps are present, it should pick them up. That said, the source map resolution code in the current version of Intern only loads maps that are in the same location as the source files themselves. There's a PR in to improve source map support; you can try it out with the sourcemap-lines branch of Intern.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM