@parcel/transformer-pug 2.10.2 → 2.11.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.
@@ -26,7 +26,7 @@ function _pug() {
26
26
  return data;
27
27
  }
28
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
- var _default = new (_plugin().Transformer)({
29
+ var _default = exports.default = new (_plugin().Transformer)({
30
30
  async loadConfig({
31
31
  config
32
32
  }) {
@@ -47,11 +47,10 @@ var _default = new (_plugin().Transformer)({
47
47
  pretty: pugConfig.pretty || false
48
48
  });
49
49
  for (let filePath of render.dependencies) {
50
- await asset.invalidateOnFileChange(filePath);
50
+ asset.invalidateOnFileChange(filePath);
51
51
  }
52
52
  asset.type = 'html';
53
53
  asset.setCode(render(pugConfig.locals));
54
54
  return [asset];
55
55
  }
56
- });
57
- exports.default = _default;
56
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/transformer-pug",
3
- "version": "2.10.2",
3
+ "version": "2.11.0",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,11 +17,11 @@
17
17
  "source": "src/PugTransformer.js",
18
18
  "engines": {
19
19
  "node": ">= 12.0.0",
20
- "parcel": "^2.10.2"
20
+ "parcel": "^2.11.0"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/plugin": "2.10.2",
23
+ "@parcel/plugin": "2.11.0",
24
24
  "pug": "^3.0.2"
25
25
  },
26
- "gitHead": "a1391ed8a719fc2f976dbadb528ca2dcffa7da12"
26
+ "gitHead": "f8076f1644cabc944695b5ec82602c8ae32bcf21"
27
27
  }
@@ -31,7 +31,7 @@ export default (new Transformer({
31
31
  });
32
32
 
33
33
  for (let filePath of render.dependencies) {
34
- await asset.invalidateOnFileChange(filePath);
34
+ asset.invalidateOnFileChange(filePath);
35
35
  }
36
36
 
37
37
  asset.type = 'html';