@parcel/transformer-posthtml 2.10.2 → 2.10.3
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.
|
@@ -134,15 +134,14 @@ var _default = new (_plugin().Transformer)({
|
|
|
134
134
|
plugins: config.plugins
|
|
135
135
|
});
|
|
136
136
|
if (res.messages) {
|
|
137
|
-
|
|
137
|
+
for (let {
|
|
138
138
|
type,
|
|
139
139
|
file: filePath
|
|
140
|
-
})
|
|
140
|
+
} of res.messages) {
|
|
141
141
|
if (type === 'dependency') {
|
|
142
|
-
|
|
142
|
+
asset.invalidateOnFileChange(filePath);
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
}));
|
|
144
|
+
}
|
|
146
145
|
}
|
|
147
146
|
asset.setAST({
|
|
148
147
|
type: 'posthtml',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/transformer-posthtml",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.3",
|
|
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.10.
|
|
20
|
+
"parcel": "^2.10.3"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/plugin": "2.10.
|
|
24
|
-
"@parcel/utils": "2.10.
|
|
23
|
+
"@parcel/plugin": "2.10.3",
|
|
24
|
+
"@parcel/utils": "2.10.3",
|
|
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": "^7.5.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "65d42a955db665a04817fa9be55df16f588593d4"
|
|
32
32
|
}
|
|
@@ -105,14 +105,11 @@ export default (new Transformer({
|
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
if (res.messages) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
return Promise.resolve();
|
|
114
|
-
}),
|
|
115
|
-
);
|
|
108
|
+
for (let {type, file: filePath} of res.messages) {
|
|
109
|
+
if (type === 'dependency') {
|
|
110
|
+
asset.invalidateOnFileChange(filePath);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
116
113
|
}
|
|
117
114
|
|
|
118
115
|
asset.setAST({
|