@parcel/transformer-sass 2.0.0-rc.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/SassTransformer.js +1 -11
- package/package.json +6 -6
- package/src/SassTransformer.js +2 -3
package/lib/SassTransformer.js
CHANGED
|
@@ -55,16 +55,6 @@ function _sass() {
|
|
|
55
55
|
return data;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
function _url() {
|
|
59
|
-
const data = require("url");
|
|
60
|
-
|
|
61
|
-
_url = function () {
|
|
62
|
-
return data;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
return data;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
58
|
function _util() {
|
|
69
59
|
const data = require("util");
|
|
70
60
|
|
|
@@ -254,7 +244,7 @@ function resolvePathImporter({
|
|
|
254
244
|
resolvePath(url, prev).then(resolved => {
|
|
255
245
|
if (resolved) {
|
|
256
246
|
done({
|
|
257
|
-
file:
|
|
247
|
+
file: resolved.filePath,
|
|
258
248
|
contents: resolved.contents
|
|
259
249
|
});
|
|
260
250
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/transformer-sass",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"source": "src/SassTransformer.js",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">= 12.0.0",
|
|
20
|
-
"parcel": "^2.
|
|
20
|
+
"parcel": "^2.1.1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/plugin": "2.
|
|
24
|
-
"@parcel/source-map": "2.0.0
|
|
25
|
-
"sass": "^1.
|
|
23
|
+
"@parcel/plugin": "^2.1.1",
|
|
24
|
+
"@parcel/source-map": "^2.0.0",
|
|
25
|
+
"sass": "^1.38.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "f53ffe772a8259d94ca2937d02fde149454112f3"
|
|
28
28
|
}
|
package/src/SassTransformer.js
CHANGED
|
@@ -4,7 +4,6 @@ import path from 'path';
|
|
|
4
4
|
import {EOL} from 'os';
|
|
5
5
|
import SourceMap from '@parcel/source-map';
|
|
6
6
|
import sass from 'sass';
|
|
7
|
-
import {pathToFileURL} from 'url';
|
|
8
7
|
import {promisify} from 'util';
|
|
9
8
|
|
|
10
9
|
// E.g: ~library/file.sass
|
|
@@ -175,13 +174,13 @@ function resolvePathImporter({asset, resolve, includePaths, options}) {
|
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
|
|
178
|
-
return function(rawUrl, prev, done) {
|
|
177
|
+
return function (rawUrl, prev, done) {
|
|
179
178
|
const url = rawUrl.replace(/^file:\/\//, '');
|
|
180
179
|
resolvePath(url, prev)
|
|
181
180
|
.then(resolved => {
|
|
182
181
|
if (resolved) {
|
|
183
182
|
done({
|
|
184
|
-
file:
|
|
183
|
+
file: resolved.filePath,
|
|
185
184
|
contents: resolved.contents,
|
|
186
185
|
});
|
|
187
186
|
} else {
|