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

Source maps still aren't produced correctly #95

@iflan

Description

@iflan

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions