@modern-js/core 2.0.0-beta.1 → 2.0.0-beta.3
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/CHANGELOG.md +156 -0
- package/dist/bin.js +1 -4
- package/dist/config/createLoadedConfig.d.ts +6 -0
- package/dist/config/createLoadedConfig.js +35 -0
- package/dist/config/createResolvedConfig.d.ts +3 -0
- package/dist/config/createResolvedConfig.js +91 -0
- package/dist/config/index.d.ts +2 -17
- package/dist/config/index.js +2 -136
- package/dist/context.d.ts +5 -9
- package/dist/index.d.ts +8 -13
- package/dist/index.js +22 -59
- package/dist/loadPlugins.d.ts +2 -12
- package/dist/loadPlugins.js +12 -5
- package/dist/manager.d.ts +80 -64
- package/dist/manager.js +11 -5
- package/dist/runBin.d.ts +5 -0
- package/dist/runBin.js +50 -0
- package/dist/schema/patchSchema.d.ts +19 -0
- package/dist/{config/schema/index.js → schema/patchSchema.js} +8 -45
- package/dist/schema/source.d.ts +9 -0
- package/dist/schema/source.js +10 -0
- package/dist/schema/testing.d.ts +13 -0
- package/dist/schema/testing.js +11 -0
- package/dist/schema/traverseSchema.d.ts +2 -0
- package/dist/schema/traverseSchema.js +20 -0
- package/dist/types/config/index.d.ts +41 -0
- package/dist/{config/types → types/config}/index.js +0 -0
- package/dist/types/config/testing.d.ts +15 -0
- package/dist/{config/types/electron.js → types/config/testing.js} +0 -0
- package/dist/types/context.d.ts +26 -0
- package/dist/{config/types/less.js → types/context.js} +0 -0
- package/dist/types/hooks.d.ts +26 -0
- package/dist/{config/types/postcss.js → types/hooks.js} +0 -0
- package/dist/types/index.d.ts +10 -1
- package/dist/types/index.js +5 -1
- package/dist/types/plugin.d.ts +26 -0
- package/dist/{config/types/sass.js → types/plugin.js} +0 -0
- package/dist/types/pluginAPI.d.ts +18 -0
- package/dist/{config/types/ssg.js → types/pluginAPI.js} +0 -0
- package/dist/utils/mergeConfig.d.ts +2 -0
- package/dist/{config → utils}/mergeConfig.js +1 -8
- package/dist/utils/repeatKeyWarning.d.ts +2 -2
- package/dist/utils/repeatKeyWarning.js +2 -2
- package/package.json +24 -10
- package/compiled/v8-compile-cache/index.d.ts +0 -1
- package/compiled/v8-compile-cache/index.js +0 -1
- package/compiled/v8-compile-cache/license +0 -21
- package/compiled/v8-compile-cache/package.json +0 -1
- package/dist/config/defaults.d.ts +0 -29
- package/dist/config/defaults.js +0 -110
- package/dist/config/mergeConfig.d.ts +0 -32
- package/dist/config/schema/deploy.d.ts +0 -16
- package/dist/config/schema/deploy.js +0 -16
- package/dist/config/schema/index.d.ts +0 -499
- package/dist/config/schema/output.d.ts +0 -146
- package/dist/config/schema/output.js +0 -68
- package/dist/config/schema/server.d.ts +0 -194
- package/dist/config/schema/server.js +0 -111
- package/dist/config/schema/source.d.ts +0 -64
- package/dist/config/schema/source.js +0 -38
- package/dist/config/schema/tools.d.ts +0 -51
- package/dist/config/schema/tools.js +0 -24
- package/dist/config/types/electron.d.ts +0 -13
- package/dist/config/types/index.d.ts +0 -260
- package/dist/config/types/less.d.ts +0 -12
- package/dist/config/types/postcss.d.ts +0 -28
- package/dist/config/types/sass.d.ts +0 -10
- package/dist/config/types/ssg.d.ts +0 -15
- package/dist/config/types/test.d.ts +0 -14
- package/dist/config/types/test.js +0 -2
- package/dist/config/types/ts-loader.d.ts +0 -23
- package/dist/config/types/ts-loader.js +0 -2
- package/dist/initWatcher.d.ts +0 -3
- package/dist/initWatcher.js +0 -66
- package/dist/pluginAPI.d.ts +0 -13
- package/dist/pluginAPI.js +0 -16
- package/dist/types/cli.d.ts +0 -59
- package/dist/types/cli.js +0 -2
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
export declare const server: {
|
|
2
|
-
type: string;
|
|
3
|
-
additionalProperties: boolean;
|
|
4
|
-
properties: {
|
|
5
|
-
port: {
|
|
6
|
-
type: string;
|
|
7
|
-
};
|
|
8
|
-
ssr: {
|
|
9
|
-
if: {
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
then: {
|
|
13
|
-
properties: {
|
|
14
|
-
disableLoadable: {
|
|
15
|
-
type: string;
|
|
16
|
-
};
|
|
17
|
-
disableHelmet: {
|
|
18
|
-
type: string;
|
|
19
|
-
};
|
|
20
|
-
disableRedirect: {
|
|
21
|
-
type: string;
|
|
22
|
-
};
|
|
23
|
-
enableAsyncData: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
enableProductWarning: {
|
|
27
|
-
type: string;
|
|
28
|
-
};
|
|
29
|
-
timeout: {
|
|
30
|
-
type: string;
|
|
31
|
-
};
|
|
32
|
-
asyncDataTimeout: {
|
|
33
|
-
type: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
else: {
|
|
38
|
-
type: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
ssrByEntries: {
|
|
42
|
-
type: string;
|
|
43
|
-
patternProperties: {
|
|
44
|
-
"^[a-zA-Z0-9_-]+$": {
|
|
45
|
-
if: {
|
|
46
|
-
type: string;
|
|
47
|
-
};
|
|
48
|
-
then: {
|
|
49
|
-
properties: {
|
|
50
|
-
disableLoadable: {
|
|
51
|
-
type: string;
|
|
52
|
-
};
|
|
53
|
-
disableHelmet: {
|
|
54
|
-
type: string;
|
|
55
|
-
};
|
|
56
|
-
disableRedirect: {
|
|
57
|
-
type: string;
|
|
58
|
-
};
|
|
59
|
-
enableProductWarning: {
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
enableAsyncData: {
|
|
63
|
-
type: string;
|
|
64
|
-
};
|
|
65
|
-
timeout: {
|
|
66
|
-
type: string;
|
|
67
|
-
};
|
|
68
|
-
asyncDataTimeout: {
|
|
69
|
-
type: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
additionalProperties: boolean;
|
|
73
|
-
};
|
|
74
|
-
else: {
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
routes: {
|
|
81
|
-
type: string;
|
|
82
|
-
patternProperties: {
|
|
83
|
-
"^[a-zA-Z0-9_-]+$": {
|
|
84
|
-
if: {
|
|
85
|
-
type: string;
|
|
86
|
-
};
|
|
87
|
-
then: {
|
|
88
|
-
properties: {
|
|
89
|
-
route: {
|
|
90
|
-
oneOf: ({
|
|
91
|
-
type: string;
|
|
92
|
-
properties: {
|
|
93
|
-
path: {
|
|
94
|
-
type: string;
|
|
95
|
-
};
|
|
96
|
-
headers: {
|
|
97
|
-
type: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
additionalProperties: boolean;
|
|
101
|
-
} | {
|
|
102
|
-
type: string;
|
|
103
|
-
items?: undefined;
|
|
104
|
-
} | {
|
|
105
|
-
type: string;
|
|
106
|
-
items: {
|
|
107
|
-
oneOf: ({
|
|
108
|
-
type: string;
|
|
109
|
-
properties: {
|
|
110
|
-
path: {
|
|
111
|
-
type: string;
|
|
112
|
-
};
|
|
113
|
-
headers: {
|
|
114
|
-
type: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
additionalProperties: boolean;
|
|
118
|
-
} | {
|
|
119
|
-
type: string;
|
|
120
|
-
})[];
|
|
121
|
-
};
|
|
122
|
-
})[];
|
|
123
|
-
};
|
|
124
|
-
disableSpa: {
|
|
125
|
-
type: string;
|
|
126
|
-
};
|
|
127
|
-
resHeaders: {
|
|
128
|
-
type: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
additionalProperties: boolean;
|
|
132
|
-
};
|
|
133
|
-
else: {
|
|
134
|
-
oneOf: ({
|
|
135
|
-
type: string;
|
|
136
|
-
items?: undefined;
|
|
137
|
-
} | {
|
|
138
|
-
type: string;
|
|
139
|
-
items: {
|
|
140
|
-
type: string;
|
|
141
|
-
};
|
|
142
|
-
})[];
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
publicRoutes: {
|
|
148
|
-
type: string;
|
|
149
|
-
patternProperties: {
|
|
150
|
-
"^[a-zA-Z0-9_-]+$": {
|
|
151
|
-
type: string[];
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
baseUrl: {
|
|
156
|
-
oneOf: ({
|
|
157
|
-
type: string;
|
|
158
|
-
items?: undefined;
|
|
159
|
-
} | {
|
|
160
|
-
type: string;
|
|
161
|
-
items: {
|
|
162
|
-
type: string;
|
|
163
|
-
}[];
|
|
164
|
-
})[];
|
|
165
|
-
};
|
|
166
|
-
middleware: {
|
|
167
|
-
instanceof: string[];
|
|
168
|
-
};
|
|
169
|
-
renderHook: {
|
|
170
|
-
instanceof: string;
|
|
171
|
-
};
|
|
172
|
-
logger: {
|
|
173
|
-
type: string[];
|
|
174
|
-
};
|
|
175
|
-
metrics: {
|
|
176
|
-
type: string[];
|
|
177
|
-
};
|
|
178
|
-
proxy: {
|
|
179
|
-
type: string;
|
|
180
|
-
};
|
|
181
|
-
enableMicroFrontendDebug: {
|
|
182
|
-
type: string;
|
|
183
|
-
};
|
|
184
|
-
disableFrameworkExt: {
|
|
185
|
-
type: string;
|
|
186
|
-
};
|
|
187
|
-
watchOptions: {
|
|
188
|
-
type: string;
|
|
189
|
-
};
|
|
190
|
-
compiler: {
|
|
191
|
-
type: string;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.server = void 0;
|
|
4
|
-
const utils_1 = require("@modern-js/utils");
|
|
5
|
-
const SERVER_ROUTE_OBJECT = {
|
|
6
|
-
type: 'object',
|
|
7
|
-
properties: {
|
|
8
|
-
path: { type: 'string' },
|
|
9
|
-
headers: { type: 'object' },
|
|
10
|
-
},
|
|
11
|
-
additionalProperties: false,
|
|
12
|
-
};
|
|
13
|
-
exports.server = {
|
|
14
|
-
type: 'object',
|
|
15
|
-
additionalProperties: false,
|
|
16
|
-
properties: {
|
|
17
|
-
port: { type: 'number' },
|
|
18
|
-
ssr: {
|
|
19
|
-
if: { type: 'object' },
|
|
20
|
-
then: {
|
|
21
|
-
properties: {
|
|
22
|
-
disableLoadable: { type: 'boolean' },
|
|
23
|
-
disableHelmet: { type: 'boolean' },
|
|
24
|
-
disableRedirect: { type: 'boolean' },
|
|
25
|
-
enableAsyncData: { type: 'boolean' },
|
|
26
|
-
enableProductWarning: { type: 'boolean' },
|
|
27
|
-
timeout: { type: 'number' },
|
|
28
|
-
asyncDataTimeout: { type: 'number' },
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
else: { type: 'boolean' },
|
|
32
|
-
},
|
|
33
|
-
ssrByEntries: {
|
|
34
|
-
type: 'object',
|
|
35
|
-
patternProperties: {
|
|
36
|
-
[utils_1.ENTRY_NAME_PATTERN]: {
|
|
37
|
-
if: { type: 'object' },
|
|
38
|
-
then: {
|
|
39
|
-
properties: {
|
|
40
|
-
disableLoadable: { type: 'boolean' },
|
|
41
|
-
disableHelmet: { type: 'boolean' },
|
|
42
|
-
disableRedirect: { type: 'boolean' },
|
|
43
|
-
enableProductWarning: { type: 'boolean' },
|
|
44
|
-
enableAsyncData: { type: 'boolean' },
|
|
45
|
-
timeout: { type: 'number' },
|
|
46
|
-
asyncDataTimeout: { type: 'number' },
|
|
47
|
-
},
|
|
48
|
-
additionalProperties: false,
|
|
49
|
-
},
|
|
50
|
-
else: { type: 'boolean' },
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
routes: {
|
|
55
|
-
type: 'object',
|
|
56
|
-
patternProperties: {
|
|
57
|
-
[utils_1.ENTRY_NAME_PATTERN]: {
|
|
58
|
-
if: { type: 'object' },
|
|
59
|
-
then: {
|
|
60
|
-
properties: {
|
|
61
|
-
route: {
|
|
62
|
-
oneOf: [
|
|
63
|
-
{ type: 'string' },
|
|
64
|
-
{
|
|
65
|
-
type: 'array',
|
|
66
|
-
items: { oneOf: [{ type: 'string' }, SERVER_ROUTE_OBJECT] },
|
|
67
|
-
},
|
|
68
|
-
SERVER_ROUTE_OBJECT,
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
disableSpa: { type: 'boolean' },
|
|
72
|
-
resHeaders: { type: 'object' },
|
|
73
|
-
},
|
|
74
|
-
additionalProperties: false,
|
|
75
|
-
},
|
|
76
|
-
else: {
|
|
77
|
-
oneOf: [
|
|
78
|
-
{ type: 'string' },
|
|
79
|
-
{
|
|
80
|
-
type: 'array',
|
|
81
|
-
items: { type: 'string' },
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
publicRoutes: {
|
|
89
|
-
type: 'object',
|
|
90
|
-
patternProperties: { [utils_1.ENTRY_NAME_PATTERN]: { type: ['string'] } },
|
|
91
|
-
},
|
|
92
|
-
baseUrl: {
|
|
93
|
-
oneOf: [
|
|
94
|
-
{ type: 'string' },
|
|
95
|
-
{
|
|
96
|
-
type: 'array',
|
|
97
|
-
items: [{ type: 'string' }],
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
},
|
|
101
|
-
middleware: { instanceof: ['Array', 'Function'] },
|
|
102
|
-
renderHook: { instanceof: 'Function' },
|
|
103
|
-
logger: { type: ['object', 'boolean'] },
|
|
104
|
-
metrics: { type: ['object', 'boolean'] },
|
|
105
|
-
proxy: { type: 'object' },
|
|
106
|
-
enableMicroFrontendDebug: { type: 'boolean' },
|
|
107
|
-
disableFrameworkExt: { type: 'boolean' },
|
|
108
|
-
watchOptions: { type: 'object' },
|
|
109
|
-
compiler: { type: 'string' },
|
|
110
|
-
},
|
|
111
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export declare const source: {
|
|
2
|
-
type: string;
|
|
3
|
-
additionalProperties: boolean;
|
|
4
|
-
properties: {
|
|
5
|
-
entries: {
|
|
6
|
-
type: string;
|
|
7
|
-
patternProperties: {
|
|
8
|
-
"^[a-zA-Z0-9_-]+$": {
|
|
9
|
-
if: {
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
then: {
|
|
13
|
-
required: string[];
|
|
14
|
-
properties: {
|
|
15
|
-
entry: {
|
|
16
|
-
type: string[];
|
|
17
|
-
};
|
|
18
|
-
disableMount: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
enableFileSystemRoutes: {
|
|
22
|
-
type: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
additionalProperties: boolean;
|
|
26
|
-
};
|
|
27
|
-
else: {
|
|
28
|
-
type: string[];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
preEntry: {
|
|
34
|
-
type: string[];
|
|
35
|
-
};
|
|
36
|
-
alias: {
|
|
37
|
-
typeof: string[];
|
|
38
|
-
};
|
|
39
|
-
enableAsyncEntry: {
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
disableDefaultEntries: {
|
|
43
|
-
type: string;
|
|
44
|
-
};
|
|
45
|
-
envVars: {
|
|
46
|
-
type: string;
|
|
47
|
-
};
|
|
48
|
-
globalVars: {
|
|
49
|
-
type: string;
|
|
50
|
-
};
|
|
51
|
-
moduleScopes: {
|
|
52
|
-
instanceof: string[];
|
|
53
|
-
};
|
|
54
|
-
entriesDir: {
|
|
55
|
-
type: string;
|
|
56
|
-
};
|
|
57
|
-
configDir: {
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
include: {
|
|
61
|
-
type: string[];
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.source = void 0;
|
|
4
|
-
const utils_1 = require("@modern-js/utils");
|
|
5
|
-
exports.source = {
|
|
6
|
-
type: 'object',
|
|
7
|
-
additionalProperties: false,
|
|
8
|
-
properties: {
|
|
9
|
-
entries: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
patternProperties: {
|
|
12
|
-
[utils_1.ENTRY_NAME_PATTERN]: {
|
|
13
|
-
if: { type: 'object' },
|
|
14
|
-
then: {
|
|
15
|
-
required: ['entry'],
|
|
16
|
-
properties: {
|
|
17
|
-
entry: { type: ['string', 'array'] },
|
|
18
|
-
disableMount: { type: 'boolean' },
|
|
19
|
-
enableFileSystemRoutes: { type: 'boolean' },
|
|
20
|
-
},
|
|
21
|
-
additionalProperties: false,
|
|
22
|
-
},
|
|
23
|
-
else: { type: ['string', 'array'] },
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
preEntry: { type: ['string', 'array'] },
|
|
28
|
-
alias: { typeof: ['object', 'function'] },
|
|
29
|
-
enableAsyncEntry: { type: 'boolean' },
|
|
30
|
-
disableDefaultEntries: { type: 'boolean' },
|
|
31
|
-
envVars: { type: 'array' },
|
|
32
|
-
globalVars: { type: 'object' },
|
|
33
|
-
moduleScopes: { instanceof: ['Array', 'Function'] },
|
|
34
|
-
entriesDir: { type: 'string' },
|
|
35
|
-
configDir: { type: 'string' },
|
|
36
|
-
include: { type: ['array'] },
|
|
37
|
-
},
|
|
38
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export declare const tools: {
|
|
2
|
-
type: string;
|
|
3
|
-
additionalProperties: boolean;
|
|
4
|
-
properties: {
|
|
5
|
-
webpack: {
|
|
6
|
-
typeof: string[];
|
|
7
|
-
};
|
|
8
|
-
webpackChain: {
|
|
9
|
-
typeof: string[];
|
|
10
|
-
};
|
|
11
|
-
babel: {
|
|
12
|
-
typeof: string[];
|
|
13
|
-
};
|
|
14
|
-
postcss: {
|
|
15
|
-
typeof: string[];
|
|
16
|
-
};
|
|
17
|
-
lodash: {
|
|
18
|
-
typeof: string[];
|
|
19
|
-
};
|
|
20
|
-
devServer: {
|
|
21
|
-
type: string;
|
|
22
|
-
};
|
|
23
|
-
tsLoader: {
|
|
24
|
-
typeof: string[];
|
|
25
|
-
};
|
|
26
|
-
autoprefixer: {
|
|
27
|
-
typeof: string[];
|
|
28
|
-
};
|
|
29
|
-
terser: {
|
|
30
|
-
typeof: string[];
|
|
31
|
-
};
|
|
32
|
-
minifyCss: {
|
|
33
|
-
typeof: string[];
|
|
34
|
-
};
|
|
35
|
-
styledComponents: {
|
|
36
|
-
typeof: string[];
|
|
37
|
-
};
|
|
38
|
-
htmlPlugin: {
|
|
39
|
-
typeof: string[];
|
|
40
|
-
};
|
|
41
|
-
esbuild: {
|
|
42
|
-
type: string;
|
|
43
|
-
};
|
|
44
|
-
sass: {
|
|
45
|
-
typeof: string[];
|
|
46
|
-
};
|
|
47
|
-
less: {
|
|
48
|
-
typeof: string[];
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tools = void 0;
|
|
4
|
-
exports.tools = {
|
|
5
|
-
type: 'object',
|
|
6
|
-
additionalProperties: false,
|
|
7
|
-
properties: {
|
|
8
|
-
webpack: { typeof: ['object', 'function'] },
|
|
9
|
-
webpackChain: { typeof: ['function'] },
|
|
10
|
-
babel: { typeof: ['object', 'function'] },
|
|
11
|
-
postcss: { typeof: ['object', 'function'] },
|
|
12
|
-
lodash: { typeof: ['object', 'function'] },
|
|
13
|
-
devServer: { type: 'object' },
|
|
14
|
-
tsLoader: { typeof: ['object', 'function'] },
|
|
15
|
-
autoprefixer: { typeof: ['object', 'function'] },
|
|
16
|
-
terser: { typeof: ['object', 'function'] },
|
|
17
|
-
minifyCss: { typeof: ['object', 'function'] },
|
|
18
|
-
styledComponents: { typeof: ['object', 'function'] },
|
|
19
|
-
htmlPlugin: { typeof: ['object', 'function'] },
|
|
20
|
-
esbuild: { type: 'object' },
|
|
21
|
-
sass: { typeof: ['object', 'function'] },
|
|
22
|
-
less: { typeof: ['object', 'function'] },
|
|
23
|
-
},
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TransformOptions } from '@babel/core';
|
|
2
|
-
import { Configuration } from 'electron-builder';
|
|
3
|
-
export declare type BuildConfig = {
|
|
4
|
-
baseConfig: Configuration;
|
|
5
|
-
macConfig?: Configuration;
|
|
6
|
-
winConfig?: Configuration;
|
|
7
|
-
win64Config?: Configuration;
|
|
8
|
-
linuxConfig?: Configuration;
|
|
9
|
-
};
|
|
10
|
-
export declare type ElectronConfig = {
|
|
11
|
-
builder?: BuildConfig;
|
|
12
|
-
babel?: TransformOptions | ((defaultBabelConfig: TransformOptions) => TransformOptions);
|
|
13
|
-
};
|