@atlaspack/transformer-postcss 2.14.15-alshdevreleasescript.0 → 2.14.15-alshintegrationtestslib.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/PostCSSTransformer.js +1 -1
- package/lib/loadPlugins.js +2 -1
- package/package.json +6 -6
|
@@ -306,7 +306,7 @@ async function createLoader(asset, resolve, options) {
|
|
|
306
306
|
let {
|
|
307
307
|
default: FileSystemLoader
|
|
308
308
|
} = await options.packageManager.require('postcss-modules/build/css-loader-core/loader', asset.filePath);
|
|
309
|
-
return class extends FileSystemLoader {
|
|
309
|
+
return class AtlaspackFileSystemLoader extends FileSystemLoader {
|
|
310
310
|
async fetch(composesPath, relativeTo) {
|
|
311
311
|
let importPath = composesPath.replace(/^["']|["']$/g, '');
|
|
312
312
|
let resolved = await resolve(relativeTo, importPath);
|
package/lib/loadPlugins.js
CHANGED
|
@@ -8,7 +8,8 @@ async function loadExternalPlugins(plugins, relative, options) {
|
|
|
8
8
|
if (Array.isArray(plugins)) {
|
|
9
9
|
return Promise.all(plugins.map(p => loadPlugin(p, relative, null, options.packageManager, options.shouldAutoInstall)).filter(Boolean));
|
|
10
10
|
} else if (typeof plugins === 'object') {
|
|
11
|
-
let
|
|
11
|
+
let _plugins = plugins;
|
|
12
|
+
let mapPlugins = await Promise.all(Object.keys(plugins).map(p => loadPlugin(p, relative, _plugins[p], options.packageManager, options.shouldAutoInstall)));
|
|
12
13
|
return mapPlugins.filter(Boolean);
|
|
13
14
|
} else {
|
|
14
15
|
return [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/transformer-postcss",
|
|
3
|
-
"version": "2.14.15-
|
|
3
|
+
"version": "2.14.15-alshintegrationtestslib.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"node": ">= 16.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@atlaspack/diagnostic": "2.14.2-
|
|
19
|
-
"@atlaspack/plugin": "2.14.15-
|
|
20
|
-
"@atlaspack/rust": "3.3.6-
|
|
21
|
-
"@atlaspack/utils": "2.15.3-
|
|
18
|
+
"@atlaspack/diagnostic": "2.14.2-alshintegrationtestslib.0",
|
|
19
|
+
"@atlaspack/plugin": "2.14.15-alshintegrationtestslib.0",
|
|
20
|
+
"@atlaspack/rust": "3.3.6-alshintegrationtestslib.0",
|
|
21
|
+
"@atlaspack/utils": "2.15.3-alshintegrationtestslib.0",
|
|
22
22
|
"clone": "^2.1.1",
|
|
23
23
|
"nullthrows": "^1.1.1",
|
|
24
24
|
"postcss-value-parser": "^4.2.0",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"postcss-modules": "^4.3.1"
|
|
30
30
|
},
|
|
31
31
|
"type": "commonjs",
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f6a68fdf5e9837f1040a7ea71443212a6f62ee5b"
|
|
33
33
|
}
|