@parcel/transformer-pug 2.6.2 → 2.7.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.
@@ -41,7 +41,7 @@ var _default = new (_plugin().Transformer)({
41
41
  async loadConfig({
42
42
  config
43
43
  }) {
44
- let configFile = await config.getConfig(['.pugrc', '.pugrc.js', 'pug.config.js']);
44
+ let configFile = await config.getConfig(['.pugrc', '.pugrc.js', '.pugrc.cjs', 'pug.config.js', 'pug.config.cjs']);
45
45
 
46
46
  if (configFile) {
47
47
  let isJavascript = _path().default.extname(configFile.filePath) === '.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/transformer-pug",
3
- "version": "2.6.2",
3
+ "version": "2.7.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.6.2"
20
+ "parcel": "^2.7.0"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/plugin": "2.6.2",
23
+ "@parcel/plugin": "2.7.0",
24
24
  "pug": "^3.0.2"
25
25
  },
26
- "gitHead": "e10fcfc1e8b71222da90978fb87f1b68e207473e"
26
+ "gitHead": "9e5d05586577e89991ccf90400f2c741dca11aa3"
27
27
  }
@@ -9,7 +9,9 @@ export default (new Transformer({
9
9
  let configFile = await config.getConfig([
10
10
  '.pugrc',
11
11
  '.pugrc.js',
12
+ '.pugrc.cjs',
12
13
  'pug.config.js',
14
+ 'pug.config.cjs',
13
15
  ]);
14
16
 
15
17
  if (configFile) {