Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Source maps still aren't produced correctly #95

Open
iflan opened this issue Sep 21, 2016 · 1 comment
Open

Source maps still aren't produced correctly #95

iflan opened this issue Sep 21, 2016 · 1 comment
Assignees

Comments

@iflan
Copy link
Member

iflan commented Sep 21, 2016

Even after fixing #11, it's clear that source maps aren't being generated correctly.

Given:

@def BG_COLOR red;

.test {
  font-family: Helvetica, Tahoma;
  background-color: BG_COLOR;
}

The compiler produces:

.a{font-family:Helvetica,Tahoma;background-color:red}

and the sourcemap:

{
"version":3,
"file":"test.source.map",
"lineCount":1,
"mappings":"AAEqB,CAAD,CAGwE,aAFjD,QAAA,CAAA,CAAW,KAAX,CAEiD,kBAL9E;",
"sources":["/tmp/test.gss"],
"names":[]
}

A visualization of the sourcemap shows that the @def is correctly linked, but none of the other parts make much sense.

@iflan iflan self-assigned this Sep 21, 2016
@zavr-1
Copy link

zavr-1 commented Oct 13, 2019

🤷‍♂ 🤷‍♀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants