This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Importer returning contents and file no longer retain absolute paths #1219
Labels
Comments
gmac
changed the title
Importer returning file and data no longer retains absolute file paths.
Importer returning contents and file no longer retain absolute paths
Oct 26, 2015
I guess https://github.com/sass/node-sass/blob/master/src/binding.cpp#L12 is the culprit, should probably be |
|
@gmac I guess their willing to accept Pull Requests in that direction 😉 |
Noted, and seriously considering. |
This was fixed in #1220. Will land in v3.4.2. |
jameslnewell
pushed a commit
to digitaledgeit/sass-composer
that referenced
this issue
Oct 27, 2015
jameslnewell
pushed a commit
to jameslnewell/node-sass
that referenced
this issue
Oct 27, 2015
I am experiencing this problem as well, waiting for release then! |
nfriedly
added a commit
to nfriedly/docpad-plugin-nodesass
that referenced
this issue
Oct 28, 2015
sass/node-sass#1219 is killing me. Broken in v3.4.1 and expected to be fixed in v3.4.2
I believe this is fixed in v3.4.2. Please open if the issue persists. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There is a significant breaking API change in the way imported file contents reference subsequent imports between versions 3.3.3 and 3.4.0.
In v3.3.3, absolute file references provided with imported contents would be passed along for resolving subsequent imports. Example behavior in v3.3.3:
Next importer call for
@import "b"
:In v3.4.0, absolute file references are apparently discarded, and only the previous slug is passed along to subsequent importer calls. Example behavior in v3.4.0:
Next importer call for
@import "b"
:This is a significant detriment to content importers that rely on the previously resolved content URI for file mapping, and a major enough change that I would have expected it to be part of a major version bump if intentional. If this change is intentional, I'd be curious about the rationale for removing this exceptionally valuable piece of data from the implementation. Without this data, importers now need to maintain a complex external dependency mapping table that can –at best– still only guess upon a previous slug's mapped file.
The text was updated successfully, but these errors were encountered: