Skip to content

greggman/sourcemap-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sourcemap Test

Shows that source map support is not part of JavaScript itself. It's part of external tools like DevTools

https://greggman.github.io/sourcemap-test/

This example compiles Typescript to JavaScript with a source map. The code throws in a function in a module.

Notice that the stack trace returned to JavaScript shows JavaScript file names and line numbers where as in DevTools itself, it shows the source-map file names and line numbers.

Source Map support is entirely external to JavaScript itself.

About

Show that sourcemaps are not supported by JavaScript - they're supported by DevTools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published