@parcel/transformer-postcss 2.8.2 → 2.8.4-nightly.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.
package/lib/loadConfig.js CHANGED
@@ -15,16 +15,6 @@ function _path() {
15
15
  return data;
16
16
  }
17
17
 
18
- function _utils() {
19
- const data = require("@parcel/utils");
20
-
21
- _utils = function () {
22
- return data;
23
- };
24
-
25
- return data;
26
- }
27
-
28
18
  function _diagnostic() {
29
19
  const data = require("@parcel/diagnostic");
30
20
 
@@ -171,7 +161,7 @@ async function load({
171
161
  return;
172
162
  }
173
163
 
174
- let configFile = await config.getConfig(['.postcssrc', '.postcssrc.json', '.postcssrc.js', '.postcssrc.cjs', 'postcss.config.js', 'postcss.config.cjs'], {
164
+ let configFile = await config.getConfig(['.postcssrc', '.postcssrc.json', '.postcssrc.js', '.postcssrc.cjs', '.postcssrc.mjs', 'postcss.config.js', 'postcss.config.cjs', 'postcss.config.mjs'], {
175
165
  packageKey: 'postcss'
176
166
  });
177
167
  let contents = null;
@@ -192,12 +182,6 @@ async function load({
192
182
  logger.warn({
193
183
  message: 'WARNING: Using a JavaScript PostCSS config file means losing out on caching features of Parcel. Use a .postcssrc(.json) file whenever possible.'
194
184
  });
195
- config.invalidateOnStartup(); // Also add the config as a dev dependency so we attempt to reload in watch mode.
196
-
197
- config.addDevDependency({
198
- specifier: (0, _utils().relativePath)(_path().default.dirname(config.searchPath), configFile.filePath),
199
- resolveFrom: config.searchPath
200
- });
201
185
  }
202
186
 
203
187
  if (typeof contents !== 'object') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/transformer-postcss",
3
- "version": "2.8.2",
3
+ "version": "2.8.4-nightly.0+7b79c6d",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,13 +17,13 @@
17
17
  "source": "src/PostCSSTransformer.js",
18
18
  "engines": {
19
19
  "node": ">= 12.0.0",
20
- "parcel": "^2.8.2"
20
+ "parcel": "2.8.4-nightly.0+7b79c6d"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/diagnostic": "2.8.2",
24
- "@parcel/hash": "2.8.2",
25
- "@parcel/plugin": "2.8.2",
26
- "@parcel/utils": "2.8.2",
23
+ "@parcel/diagnostic": "2.8.4-nightly.0+7b79c6d",
24
+ "@parcel/hash": "2.8.4-nightly.0+7b79c6d",
25
+ "@parcel/plugin": "2.8.4-nightly.0+7b79c6d",
26
+ "@parcel/utils": "2.8.4-nightly.0+7b79c6d",
27
27
  "clone": "^2.1.1",
28
28
  "nullthrows": "^1.1.1",
29
29
  "postcss-value-parser": "^4.2.0",
@@ -33,5 +33,5 @@
33
33
  "postcss": "^8.4.5",
34
34
  "postcss-modules": "^4.3.1"
35
35
  },
36
- "gitHead": "3437f64e4c6f57d911614c480b742e229149f200"
36
+ "gitHead": "7b79c6d69ffabef89810a8db61e9abdeb70d6990"
37
37
  }
package/src/loadConfig.js CHANGED
@@ -6,7 +6,6 @@ import type {
6
6
  PluginLogger,
7
7
  } from '@parcel/types';
8
8
  import path from 'path';
9
- import {relativePath} from '@parcel/utils';
10
9
  import {md, generateJSONCodeHighlights} from '@parcel/diagnostic';
11
10
  import nullthrows from 'nullthrows';
12
11
  import clone from 'clone';
@@ -165,8 +164,10 @@ export async function load({
165
164
  '.postcssrc.json',
166
165
  '.postcssrc.js',
167
166
  '.postcssrc.cjs',
167
+ '.postcssrc.mjs',
168
168
  'postcss.config.js',
169
169
  'postcss.config.cjs',
170
+ 'postcss.config.mjs',
170
171
  ],
171
172
  {packageKey: 'postcss'},
172
173
  );
@@ -189,17 +190,6 @@ export async function load({
189
190
  message:
190
191
  'WARNING: Using a JavaScript PostCSS config file means losing out on caching features of Parcel. Use a .postcssrc(.json) file whenever possible.',
191
192
  });
192
-
193
- config.invalidateOnStartup();
194
-
195
- // Also add the config as a dev dependency so we attempt to reload in watch mode.
196
- config.addDevDependency({
197
- specifier: relativePath(
198
- path.dirname(config.searchPath),
199
- configFile.filePath,
200
- ),
201
- resolveFrom: config.searchPath,
202
- });
203
193
  }
204
194
 
205
195
  if (typeof contents !== 'object') {