@best-shot/preset-mini 0.11.17 → 0.11.18
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/loader.mjs +18 -1
- package/package.json +4 -3
package/loader.mjs
CHANGED
|
@@ -34,7 +34,7 @@ export function applyLoaders(chain) {
|
|
|
34
34
|
.loader('@into-mini/sfc-split-loader/dist/index.mjs');
|
|
35
35
|
|
|
36
36
|
vueRule
|
|
37
|
-
.rule('extract-vue-config')
|
|
37
|
+
.rule('extract-vue-config-json')
|
|
38
38
|
.test(vueRegexp)
|
|
39
39
|
.issuer(vueRegexp)
|
|
40
40
|
.resourceQuery(/type=config&lang=json/)
|
|
@@ -47,6 +47,23 @@ export function applyLoaders(chain) {
|
|
|
47
47
|
.use('sfc-split-loader')
|
|
48
48
|
.loader('@into-mini/sfc-split-loader/dist/index.mjs');
|
|
49
49
|
|
|
50
|
+
vueRule
|
|
51
|
+
.rule('extract-vue-config-yaml')
|
|
52
|
+
.test(vueRegexp)
|
|
53
|
+
.issuer(vueRegexp)
|
|
54
|
+
.resourceQuery(/type=config&lang=yaml/)
|
|
55
|
+
.type('asset/resource')
|
|
56
|
+
.generator.filename('[entry].json')
|
|
57
|
+
.end()
|
|
58
|
+
.use('entry-loader')
|
|
59
|
+
.loader('@into-mini/sfc-split-plugin/dist/loader/entry-loader.mjs')
|
|
60
|
+
.end()
|
|
61
|
+
.use('yaml-loader')
|
|
62
|
+
.loader('yaml-patch-loader')
|
|
63
|
+
.end()
|
|
64
|
+
.use('sfc-split-loader')
|
|
65
|
+
.loader('@into-mini/sfc-split-loader/dist/index.mjs');
|
|
66
|
+
|
|
50
67
|
const xRule = vueRule
|
|
51
68
|
.rule('extract-vue-style')
|
|
52
69
|
.test(vueRegexp)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@best-shot/preset-mini",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.18",
|
|
4
4
|
"description": "A `best-shot` preset for mini program project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -27,12 +27,13 @@
|
|
|
27
27
|
"main": "index.mjs",
|
|
28
28
|
"type": "module",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@into-mini/auto-entries-plugin": "^0.2.
|
|
30
|
+
"@into-mini/auto-entries-plugin": "^0.2.1",
|
|
31
31
|
"@into-mini/sfc-split-loader": "^0.2.6",
|
|
32
32
|
"@into-mini/sfc-split-plugin": "^0.6.0",
|
|
33
33
|
"@into-mini/wxml-loader": "^0.0.0",
|
|
34
34
|
"ext-to-regexp": "^0.1.0",
|
|
35
|
-
"yaml": "^2.8.2"
|
|
35
|
+
"yaml": "^2.8.2",
|
|
36
|
+
"yaml-patch-loader": "^0.1.0"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"@babel/core": "^7.28.5",
|