@into-mini/sfc-split-plugin 0.6.2 → 0.6.4
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.
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { createHash } from 'node:crypto';
|
|
4
4
|
import { relative, resolve } from 'node:path';
|
|
5
5
|
import { fileURLToPath } from 'node:url';
|
|
6
|
+
import sortKeys from 'sort-keys';
|
|
6
7
|
import slash from 'slash';
|
|
7
8
|
function createShortHash(input) {
|
|
8
9
|
return createHash('sha256').update(input).digest('hex').slice(0, 8);
|
|
@@ -96,5 +97,9 @@ export default function loader(source) {
|
|
|
96
97
|
},
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
|
-
|
|
100
|
+
config.componentGenerics &&= sortKeys(config.componentGenerics);
|
|
101
|
+
config.usingComponents &&= sortKeys(config.usingComponents);
|
|
102
|
+
const shouldFormat = this._compiler?.options?.optimization?.minimize !== true;
|
|
103
|
+
const spaces = shouldFormat ? 2 : 0;
|
|
104
|
+
callback(null, JSON.stringify(config, null, spaces));
|
|
100
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@into-mini/sfc-split-plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loader",
|
|
@@ -29,14 +29,13 @@
|
|
|
29
29
|
"type": "module",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"slash": "^5.1.0",
|
|
32
|
+
"sort-keys": "^6.0.0",
|
|
32
33
|
"yaml": "^2.8.2",
|
|
33
34
|
"@into-mini/clsx": "^0.1.1",
|
|
34
|
-
"@into-mini/sfc-split-loader": "^0.3.3",
|
|
35
|
-
"@into-mini/wxml-loader": "^0.0.0",
|
|
36
35
|
"@into-mini/sfc-transformer": "^0.6.5"
|
|
37
36
|
},
|
|
38
37
|
"peerDependencies": {
|
|
39
|
-
"webpack": "^5.104.
|
|
38
|
+
"webpack": "^5.104.1"
|
|
40
39
|
},
|
|
41
40
|
"engines": {
|
|
42
41
|
"node": ">=22.18.0"
|