From:  Sander Spies <sandermail@gmail.com>
Date:  06 Nov 2014 01:04:28 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.dev.js-sourcemap
Subject:  

Re: Add support for many to many

NNTP-Posting-Host:  63.245.216.66

Any examples on how to do this properly would be greatly appreciated. From
reading the spec it seems impossible, but I would love to be proven wrong!

Just to be clear: I have a bundle.css and bundle.js which I both want to
refer to the same files, as the CSS is contained inside JavaScript.

On Tue, Oct 21, 2014 at 3:02 AM, John Lenz  wrote:

> A reverse index map would be fairly simple to do.
> On Oct 20, 2014 10:01 AM, "Brian Slesinsky"  wrote:
>
>> When bundling multiple files together, you need to merge multiple
>> sourcemaps into one. There is support in the standard for multi-level
>> mappings, or you could just flatten it into a single sourcemap.
>>
>> When splitting a bundle into multiple files, you will need to split the
>> sourcemap as well. There's no explicit support for this but it should be
>> possible.
>>
>>
>> On Mon, Oct 20, 2014 at 9:48 AM, Sander Spies 
>> wrote:
>>
>> > Is it even possible to reference to a sourcemap file from another
>> > sourcemap? I looked for it, but couldn't find anything.
>> > I think what you want/need to do is to create one source map for each
>> > output file.
>> >
>> > Conrad
>> >
>> > On Sun, Oct 19, 2014 at 11:42 PM,  wrote:
>> >
>> > > Currently I'm building a library called React Style which allows you
>> to
>> > > write CSS inside JavaScript (inside React components to be more
>> > specific).
>> > > For this library I want to combine everything in a bundled JS and
>> bundled
>> > > CSS file at build time, and with source maps I want to wrap everything
>> > back
>> > > into separate files again that combine both CSS and JS. If I'm correct
>> > this
>> > > not possible with the V3 spec of source maps as it's only possible to
>> > use 1
>> > > files as input for a source-map.
>> > >
>> > > It would be great if there was support for many-to-many, instead of
>> > > one-to-many. And preferably possible to mix CSS, JS, and even HTML.
>> > >
>> > > I'm not sure what the current status of the spec is, and if there is
>> even
>> > > a V4 already - which might support what I want.
>> > > _______________________________________________
>> > > dev-js-sourcemap mailing list
>> > > dev-js-sourcemap@lists.mozilla.org
>> > > https://lists.mozilla.org/listinfo/dev-js-sourcemap
>> > >
>> > _______________________________________________
>> > dev-js-sourcemap mailing list
>> > dev-js-sourcemap@lists.mozilla.org
>> > https://lists.mozilla.org/listinfo/dev-js-sourcemap
>> >
>> _______________________________________________
>> dev-js-sourcemap mailing list
>> dev-js-sourcemap@lists.mozilla.org
>> https://lists.mozilla.org/listinfo/dev-js-sourcemap
>>
>