Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Source Map trees - Requesting API, parse(), individual "input sourcemap" option. #151

Open
uiteoi opened this Issue · 2 comments

1 participant

@uiteoi

Currently, to specify an input source map, one uses the global "orig" option of SourceMap().

This works if there is a single source, but does not allow to specify multiple input source maps when multiple files are provided through multiple calls to parse().

The requested option to parse() would solve this issue, allowing to have some files with input source maps, and some without.

A typical use case is when some source files are Coffee script. There is one individual source map for each compiled coffee source.

@uiteoi

I posted this 8 months ago, and still believe this is an important feature, especially as there is a growing number of compilers with a JavaScript target.

Recently I came across a Ruby to JavaScript compiler and a JVM. There will be more an more as JavaScript is a de-facto virtual machine for Web DSLs.

@uiteoi

This is linked to issue #145 but this one is about the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.