@parcel/transformer-posthtml 2.0.0 → 2.0.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.
@@ -95,6 +95,10 @@ var _default = new (_plugin().Transformer)({
95
95
  options,
96
96
  logger
97
97
  }) {
98
+ if (!config.isSource) {
99
+ return;
100
+ }
101
+
98
102
  let configFile = await config.getConfig(['.posthtmlrc', '.posthtmlrc.js', 'posthtml.config.js'], {
99
103
  packageKey: 'posthtml'
100
104
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/transformer-posthtml",
3
- "version": "2.0.0",
3
+ "version": "2.0.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.0.0"
20
+ "parcel": "^2.0.1"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/plugin": "^2.0.0",
24
- "@parcel/utils": "^2.0.0",
23
+ "@parcel/plugin": "^2.0.1",
24
+ "@parcel/utils": "^2.0.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.4.1"
30
30
  },
31
- "gitHead": "84da50ae6943bff9741e2fc76d2f4968074cbbd6"
31
+ "gitHead": "28b47e6bdca7de2a06b7cc39a4a0b1df89f3fe15"
32
32
  }
@@ -13,6 +13,10 @@ import loadPlugins from './loadPlugins';
13
13
 
14
14
  export default (new Transformer({
15
15
  async loadConfig({config, options, logger}) {
16
+ if (!config.isSource) {
17
+ return;
18
+ }
19
+
16
20
  let configFile = await config.getConfig(
17
21
  ['.posthtmlrc', '.posthtmlrc.js', 'posthtml.config.js'],
18
22
  {