@parcel/transformer-posthtml 2.7.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.
|
@@ -104,7 +104,7 @@ var _default = new (_plugin().Transformer)({
|
|
|
104
104
|
});
|
|
105
105
|
|
|
106
106
|
if (configFile) {
|
|
107
|
-
let isJavascript = _path().default.extname(configFile.filePath)
|
|
107
|
+
let isJavascript = _path().default.extname(configFile.filePath).endsWith('js');
|
|
108
108
|
|
|
109
109
|
if (isJavascript) {
|
|
110
110
|
// 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-posthtml",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"source": "src/PostHTMLTransformer.js",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">= 12.0.0",
|
|
20
|
-
"parcel": "^2.
|
|
20
|
+
"parcel": "^2.8.1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/plugin": "2.
|
|
24
|
-
"@parcel/utils": "2.
|
|
23
|
+
"@parcel/plugin": "2.8.1",
|
|
24
|
+
"@parcel/utils": "2.8.1",
|
|
25
25
|
"nullthrows": "^1.1.1",
|
|
26
26
|
"posthtml": "^0.16.5",
|
|
27
27
|
"posthtml-parser": "^0.10.1",
|
|
28
28
|
"posthtml-render": "^3.0.0",
|
|
29
29
|
"semver": "^5.7.1"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "f8d3fc30ca5b33d8f8674525f2a741d662c5986a"
|
|
32
32
|
}
|
|
@@ -31,7 +31,7 @@ export default (new Transformer({
|
|
|
31
31
|
);
|
|
32
32
|
|
|
33
33
|
if (configFile) {
|
|
34
|
-
let isJavascript = path.extname(configFile.filePath)
|
|
34
|
+
let isJavascript = path.extname(configFile.filePath).endsWith('js');
|
|
35
35
|
if (isJavascript) {
|
|
36
36
|
// We have to invalidate on startup in case the config is non-deterministic,
|
|
37
37
|
// e.g. using unknown environment variables, reading from the filesystem, etc.
|