@parcel/transformer-stylus 2.10.2 → 2.11.0
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/StylusTransformer.js
CHANGED
|
@@ -76,7 +76,7 @@ function _evaluator() {
|
|
|
76
76
|
}
|
|
77
77
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
78
78
|
const URL_RE = /^(?:url\s*\(\s*)?['"]?(?:[#/]|(?:https?:)?\/\/)/i;
|
|
79
|
-
var _default = new (_plugin().Transformer)({
|
|
79
|
+
var _default = exports.default = new (_plugin().Transformer)({
|
|
80
80
|
async loadConfig({
|
|
81
81
|
config
|
|
82
82
|
}) {
|
|
@@ -125,7 +125,6 @@ var _default = new (_plugin().Transformer)({
|
|
|
125
125
|
return [asset];
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
|
-
exports.default = _default;
|
|
129
128
|
function attemptResolve(importedPath, filepath, asset, resolve, deps) {
|
|
130
129
|
if (deps.has(importedPath)) {
|
|
131
130
|
return;
|
|
@@ -207,7 +206,7 @@ async function getDependencies(code, filepath, asset, resolve, options, parcelOp
|
|
|
207
206
|
// Recursively process resolved files as well to get nested deps
|
|
208
207
|
for (let resolved of found) {
|
|
209
208
|
if (!seen.has(resolved)) {
|
|
210
|
-
|
|
209
|
+
asset.invalidateOnFileChange(resolved);
|
|
211
210
|
let code = await asset.fs.readFile(resolved, 'utf8');
|
|
212
211
|
for (let [path, resolvedPath] of await getDependencies(code, resolved, asset, resolve, options, parcelOptions, nativeGlob, seen, false)) {
|
|
213
212
|
res.set(path, resolvedPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/transformer-stylus",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"source": "src/StylusTransformer.js",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">= 12.0.0",
|
|
20
|
-
"parcel": "^2.
|
|
20
|
+
"parcel": "^2.11.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/plugin": "2.
|
|
24
|
-
"@parcel/utils": "2.
|
|
23
|
+
"@parcel/plugin": "2.11.0",
|
|
24
|
+
"@parcel/utils": "2.11.0",
|
|
25
25
|
"stylus": "^0.55.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "f8076f1644cabc944695b5ec82602c8ae32bcf21"
|
|
28
28
|
}
|
package/src/StylusTransformer.js
CHANGED
|
@@ -198,7 +198,7 @@ async function getDependencies(
|
|
|
198
198
|
// Recursively process resolved files as well to get nested deps
|
|
199
199
|
for (let resolved of found) {
|
|
200
200
|
if (!seen.has(resolved)) {
|
|
201
|
-
|
|
201
|
+
asset.invalidateOnFileChange(resolved);
|
|
202
202
|
|
|
203
203
|
let code = await asset.fs.readFile(resolved, 'utf8');
|
|
204
204
|
for (let [path, resolvedPath] of await getDependencies(
|