@parcel/transformer-postcss 2.0.0-nightly.982 → 2.0.0-nightly.986

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.
@@ -35,10 +35,10 @@ function _plugin() {
35
35
  return data;
36
36
  }
37
37
 
38
- function _fileSystemLoader() {
39
- const data = _interopRequireDefault(require("css-modules-loader-core/lib/file-system-loader"));
38
+ function _loader() {
39
+ const data = _interopRequireDefault(require("postcss-modules/build/css-loader-core/loader"));
40
40
 
41
- _fileSystemLoader = function () {
41
+ _loader = function () {
42
42
  return data;
43
43
  };
44
44
 
@@ -298,7 +298,7 @@ var _default = new (_plugin().Transformer)({
298
298
  exports.default = _default;
299
299
 
300
300
  function createLoader(asset, resolve) {
301
- return class extends _fileSystemLoader().default {
301
+ return class extends _loader().default {
302
302
  async fetch(composesPath, relativeTo) {
303
303
  let importPath = composesPath.replace(/^["']|["']$/g, '');
304
304
  let resolved = await resolve(relativeTo, importPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/transformer-postcss",
3
- "version": "2.0.0-nightly.982+4745cd30",
3
+ "version": "2.0.0-nightly.986+74fcc3fb",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,21 +17,20 @@
17
17
  "source": "src/PostCSSTransformer.js",
18
18
  "engines": {
19
19
  "node": ">= 12.0.0",
20
- "parcel": "2.0.0-nightly.980+4745cd30"
20
+ "parcel": "2.0.0-nightly.984+74fcc3fb"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/hash": "2.2.1-nightly.2605+4745cd30",
24
- "@parcel/plugin": "2.0.0-nightly.982+4745cd30",
25
- "@parcel/utils": "2.0.0-nightly.982+4745cd30",
23
+ "@parcel/hash": "2.2.2-nightly.2609+74fcc3fb",
24
+ "@parcel/plugin": "2.0.0-nightly.986+74fcc3fb",
25
+ "@parcel/utils": "2.0.0-nightly.986+74fcc3fb",
26
26
  "clone": "^2.1.1",
27
- "css-modules-loader-core": "^1.1.0",
28
27
  "nullthrows": "^1.1.1",
29
- "postcss-modules": "^3.2.2",
30
- "postcss-value-parser": "^4.1.0",
28
+ "postcss-modules": "^4.3.0",
29
+ "postcss-value-parser": "^4.2.0",
31
30
  "semver": "^5.7.1"
32
31
  },
33
32
  "devDependencies": {
34
- "postcss": "^8.3.0"
33
+ "postcss": "^8.4.5"
35
34
  },
36
- "gitHead": "4745cd3023f8d5a5adcf9e565d5b82d1418dc262"
35
+ "gitHead": "74fcc3fbe80cea993bff10e158df3d0f701973c7"
37
36
  }
@@ -5,7 +5,7 @@ import type {FilePath, Asset, MutableAsset, PluginOptions} from '@parcel/types';
5
5
  import {hashString} from '@parcel/hash';
6
6
  import {glob} from '@parcel/utils';
7
7
  import {Transformer} from '@parcel/plugin';
8
- import FileSystemLoader from 'css-modules-loader-core/lib/file-system-loader';
8
+ import FileSystemLoader from 'postcss-modules/build/css-loader-core/loader';
9
9
  import nullthrows from 'nullthrows';
10
10
  import path from 'path';
11
11
  import semver from 'semver';