@best-shot/preset-mini 0.5.4 → 0.6.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/README.md +3 -1
- package/index.mjs +10 -4
- package/package.json +4 -4
package/README.md
CHANGED
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function apply({
|
|
2
|
-
config: {
|
|
2
|
+
config: { mini: { type } = {}, output: { module: Module } = {} },
|
|
3
3
|
}) {
|
|
4
4
|
return (chain) => {
|
|
5
5
|
chain.output.publicPath('/').iife(false).asyncChunks(false);
|
|
@@ -47,7 +47,7 @@ export function apply({
|
|
|
47
47
|
|
|
48
48
|
chain.plugin('sfc-split').use('@best-shot/sfc-split-plugin', [
|
|
49
49
|
{
|
|
50
|
-
|
|
50
|
+
type,
|
|
51
51
|
},
|
|
52
52
|
]);
|
|
53
53
|
};
|
|
@@ -56,8 +56,14 @@ export function apply({
|
|
|
56
56
|
export const name = 'preset-mini';
|
|
57
57
|
|
|
58
58
|
export const schema = {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
mini: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
default: {},
|
|
62
|
+
properties: {
|
|
63
|
+
type: {
|
|
64
|
+
enum: ['app', 'plugin'],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
61
67
|
},
|
|
62
68
|
target: {
|
|
63
69
|
default: 'browserslist',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@best-shot/preset-mini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "A `best-shot` preset for mini program project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"type": "module",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"yaml": "^2.5.1",
|
|
32
|
-
"@best-shot/sfc-split-plugin": "~0.8.
|
|
32
|
+
"@best-shot/sfc-split-plugin": "~0.8.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@best-shot/core": "~0.10.5",
|
|
36
|
-
"@best-shot/preset-
|
|
37
|
-
"@best-shot/preset-
|
|
36
|
+
"@best-shot/preset-babel": "~0.15.7",
|
|
37
|
+
"@best-shot/preset-style": "~0.13.3"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.0.0 || ^18.20.4 || ^20.15.0"
|