@parcel/transformer-postcss 2.8.0 → 2.8.2

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 CHANGED
@@ -183,7 +183,8 @@ async function load({
183
183
  range: _constants.POSTCSS_RANGE
184
184
  });
185
185
  contents = configFile.contents;
186
- let isDynamic = configFile && _path().default.extname(configFile.filePath) === '.js';
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.0",
3
+ "version": "2.8.2",
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.0"
20
+ "parcel": "^2.8.2"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/diagnostic": "2.8.0",
24
- "@parcel/hash": "2.8.0",
25
- "@parcel/plugin": "2.8.0",
26
- "@parcel/utils": "2.8.0",
23
+ "@parcel/diagnostic": "2.8.2",
24
+ "@parcel/hash": "2.8.2",
25
+ "@parcel/plugin": "2.8.2",
26
+ "@parcel/utils": "2.8.2",
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": "c3bbe0a6160186f496ca2f9e9bead9376c0522f1"
36
+ "gitHead": "3437f64e4c6f57d911614c480b742e229149f200"
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 = configFile && path.extname(configFile.filePath) === '.js';
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.