@parcel/transformer-postcss 2.8.0 → 2.8.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/loadConfig.js +2 -1
- package/package.json +7 -7
- package/src/loadConfig.js +2 -1
package/lib/loadConfig.js
CHANGED
|
@@ -183,7 +183,8 @@ async function load({
|
|
|
183
183
|
range: _constants.POSTCSS_RANGE
|
|
184
184
|
});
|
|
185
185
|
contents = configFile.contents;
|
|
186
|
-
|
|
186
|
+
|
|
187
|
+
let isDynamic = configFile && _path().default.extname(configFile.filePath).endsWith('js');
|
|
187
188
|
|
|
188
189
|
if (isDynamic) {
|
|
189
190
|
// We have to invalidate on startup in case the config is non-deterministic,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/transformer-postcss",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"source": "src/PostCSSTransformer.js",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">= 12.0.0",
|
|
20
|
-
"parcel": "^2.8.
|
|
20
|
+
"parcel": "^2.8.1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/diagnostic": "2.8.
|
|
24
|
-
"@parcel/hash": "2.8.
|
|
25
|
-
"@parcel/plugin": "2.8.
|
|
26
|
-
"@parcel/utils": "2.8.
|
|
23
|
+
"@parcel/diagnostic": "2.8.1",
|
|
24
|
+
"@parcel/hash": "2.8.1",
|
|
25
|
+
"@parcel/plugin": "2.8.1",
|
|
26
|
+
"@parcel/utils": "2.8.1",
|
|
27
27
|
"clone": "^2.1.1",
|
|
28
28
|
"nullthrows": "^1.1.1",
|
|
29
29
|
"postcss-value-parser": "^4.2.0",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"postcss": "^8.4.5",
|
|
34
34
|
"postcss-modules": "^4.3.1"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "f8d3fc30ca5b33d8f8674525f2a741d662c5986a"
|
|
37
37
|
}
|
package/src/loadConfig.js
CHANGED
|
@@ -180,7 +180,8 @@ export async function load({
|
|
|
180
180
|
});
|
|
181
181
|
|
|
182
182
|
contents = configFile.contents;
|
|
183
|
-
let isDynamic =
|
|
183
|
+
let isDynamic =
|
|
184
|
+
configFile && path.extname(configFile.filePath).endsWith('js');
|
|
184
185
|
if (isDynamic) {
|
|
185
186
|
// We have to invalidate on startup in case the config is non-deterministic,
|
|
186
187
|
// e.g. using unknown environment variables, reading from the filesystem, etc.
|