@parcel/transformer-stylus 2.6.2 → 2.7.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
|
@@ -113,7 +113,7 @@ var _default = new (_plugin().Transformer)({
|
|
|
113
113
|
async loadConfig({
|
|
114
114
|
config
|
|
115
115
|
}) {
|
|
116
|
-
let configFile = await config.getConfig(['.stylusrc', '.stylusrc.js'], {
|
|
116
|
+
let configFile = await config.getConfig(['.stylusrc', '.stylusrc.js', '.stylusrc.cjs'], {
|
|
117
117
|
packageKey: 'stylus'
|
|
118
118
|
});
|
|
119
119
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/transformer-stylus",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.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.7.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/plugin": "2.
|
|
24
|
-
"@parcel/utils": "2.
|
|
23
|
+
"@parcel/plugin": "2.7.0",
|
|
24
|
+
"@parcel/utils": "2.7.0",
|
|
25
25
|
"stylus": "^0.55.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "9e5d05586577e89991ccf90400f2c741dca11aa3"
|
|
28
28
|
}
|
package/src/StylusTransformer.js
CHANGED
|
@@ -15,9 +15,12 @@ const URL_RE = /^(?:url\s*\(\s*)?['"]?(?:[#/]|(?:https?:)?\/\/)/i;
|
|
|
15
15
|
|
|
16
16
|
export default (new Transformer({
|
|
17
17
|
async loadConfig({config}) {
|
|
18
|
-
let configFile = await config.getConfig(
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
let configFile = await config.getConfig(
|
|
19
|
+
['.stylusrc', '.stylusrc.js', '.stylusrc.cjs'],
|
|
20
|
+
{
|
|
21
|
+
packageKey: 'stylus',
|
|
22
|
+
},
|
|
23
|
+
);
|
|
21
24
|
|
|
22
25
|
if (configFile) {
|
|
23
26
|
let isJavascript = path.extname(configFile.filePath) === '.js';
|