@easy-editor/materials-dashboard-audio 0.0.2 → 0.0.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.
- package/CHANGELOG.md +14 -0
- package/dist/component.min.js +1 -2
- package/dist/index.min.js +1 -2
- package/dist/meta.min.js +1 -2
- package/easypack.config.ts +10 -0
- package/package.json +4 -11
- package/src/component.tsx +222 -140
- package/src/configure.ts +165 -247
- package/src/index.tsx +7 -7
- package/src/meta.ts +26 -28
- package/src/snippets.ts +61 -50
- package/tsconfig.json +20 -9
- package/.vite/plugins/vite-plugin-external-deps.ts +0 -224
- package/.vite/plugins/vite-plugin-material-dev.ts +0 -218
- package/dist/component.esm.js +0 -165
- package/dist/component.esm.js.map +0 -1
- package/dist/component.js +0 -173
- package/dist/component.js.map +0 -1
- package/dist/component.min.js.map +0 -1
- package/dist/index.cjs +0 -456
- package/dist/index.cjs.map +0 -1
- package/dist/index.esm.js +0 -453
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -460
- package/dist/index.js.map +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist/meta.esm.js +0 -292
- package/dist/meta.esm.js.map +0 -1
- package/dist/meta.js +0 -303
- package/dist/meta.js.map +0 -1
- package/dist/meta.min.js.map +0 -1
- package/dist/src/component.d.ts +0 -23
- package/dist/src/configure.d.ts +0 -7
- package/dist/src/constants.d.ts +0 -16
- package/dist/src/index.d.ts +0 -6
- package/dist/src/meta.d.ts +0 -7
- package/dist/src/snippets.d.ts +0 -7
- package/rollup.config.js +0 -222
- package/tsconfig.build.json +0 -12
- package/tsconfig.test.json +0 -7
- package/vite.config.ts +0 -54
package/src/configure.ts
CHANGED
|
@@ -1,247 +1,165 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audio Configure
|
|
3
|
-
* 音频组件配置
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type {
|
|
7
|
-
import type { UploadValue } from '@easy-editor/materials-shared'
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
extraProps: {
|
|
168
|
-
defaultValue: 'custom',
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: 'playbackRate',
|
|
173
|
-
title: '播放速度',
|
|
174
|
-
setter: {
|
|
175
|
-
componentName: 'SelectSetter',
|
|
176
|
-
props: {
|
|
177
|
-
options: [
|
|
178
|
-
{ label: '0.5x', value: 0.5 },
|
|
179
|
-
{ label: '0.75x', value: 0.75 },
|
|
180
|
-
{ label: '1x (正常)', value: 1 },
|
|
181
|
-
{ label: '1.25x', value: 1.25 },
|
|
182
|
-
{ label: '1.5x', value: 1.5 },
|
|
183
|
-
{ label: '2x', value: 2 },
|
|
184
|
-
],
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
extraProps: {
|
|
188
|
-
defaultValue: 1,
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
name: 'volume',
|
|
193
|
-
title: '音量',
|
|
194
|
-
setter: {
|
|
195
|
-
componentName: 'SliderSetter',
|
|
196
|
-
props: {
|
|
197
|
-
min: 0,
|
|
198
|
-
max: 100,
|
|
199
|
-
step: 1,
|
|
200
|
-
suffix: '%',
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
extraProps: {
|
|
204
|
-
defaultValue: 100,
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
],
|
|
208
|
-
},
|
|
209
|
-
],
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
type: 'group',
|
|
213
|
-
key: 'data',
|
|
214
|
-
title: '数据',
|
|
215
|
-
items: [
|
|
216
|
-
{
|
|
217
|
-
name: 'dataBinding',
|
|
218
|
-
title: '数据绑定',
|
|
219
|
-
setter: 'DataBindingSetter',
|
|
220
|
-
},
|
|
221
|
-
],
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
type: 'group',
|
|
225
|
-
key: 'advanced',
|
|
226
|
-
title: '高级',
|
|
227
|
-
items: [
|
|
228
|
-
{
|
|
229
|
-
name: 'condition',
|
|
230
|
-
title: '显隐控制',
|
|
231
|
-
setter: 'SwitchSetter',
|
|
232
|
-
extraProps: {
|
|
233
|
-
defaultValue: true,
|
|
234
|
-
supportVariable: true,
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
],
|
|
238
|
-
},
|
|
239
|
-
],
|
|
240
|
-
},
|
|
241
|
-
],
|
|
242
|
-
component: {},
|
|
243
|
-
supports: {},
|
|
244
|
-
advanced: {},
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export default configure
|
|
1
|
+
/**
|
|
2
|
+
* Audio Configure
|
|
3
|
+
* 音频组件配置
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { FieldConfig } from '@easy-editor/core'
|
|
7
|
+
import type { UploadValue } from '@easy-editor/materials-shared'
|
|
8
|
+
import { createCollapseGroup, createDataConfigGroup, createStandardConfigure } from '@easy-editor/materials-shared'
|
|
9
|
+
|
|
10
|
+
/** 组件配置 - 音频独有 */
|
|
11
|
+
const componentConfigGroup: FieldConfig = createCollapseGroup(
|
|
12
|
+
'组件配置',
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
type: 'group',
|
|
16
|
+
title: '组件配置',
|
|
17
|
+
setter: 'SubTabSetter',
|
|
18
|
+
items: [
|
|
19
|
+
// 内容 Tab
|
|
20
|
+
{
|
|
21
|
+
type: 'group',
|
|
22
|
+
key: 'content',
|
|
23
|
+
title: '内容',
|
|
24
|
+
items: [
|
|
25
|
+
{
|
|
26
|
+
name: '__upload',
|
|
27
|
+
title: '上传',
|
|
28
|
+
setter: {
|
|
29
|
+
componentName: 'UploadSetter',
|
|
30
|
+
props: {
|
|
31
|
+
accept: '.mp3,.wav,.ogg',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
extraProps: {
|
|
35
|
+
setValue(target, value: UploadValue) {
|
|
36
|
+
if (value) {
|
|
37
|
+
const { base64, raw } = value
|
|
38
|
+
if (base64) {
|
|
39
|
+
target.parent.setPropValue('src', base64)
|
|
40
|
+
}
|
|
41
|
+
if (raw?.width) {
|
|
42
|
+
target.parent.setExtraPropValue('$dashboard.rect.width', raw.width)
|
|
43
|
+
}
|
|
44
|
+
if (raw?.height) {
|
|
45
|
+
target.parent.setExtraPropValue('$dashboard.rect.height', raw.height)
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
target.parent.clearPropValue('src')
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'src',
|
|
55
|
+
title: '音频地址',
|
|
56
|
+
setter: 'StringSetter',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'title',
|
|
60
|
+
title: '标题',
|
|
61
|
+
setter: 'StringSetter',
|
|
62
|
+
extraProps: {
|
|
63
|
+
defaultValue: '音频文件',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
// 播放 Tab
|
|
69
|
+
{
|
|
70
|
+
type: 'group',
|
|
71
|
+
key: 'playback',
|
|
72
|
+
title: '播放',
|
|
73
|
+
items: [
|
|
74
|
+
{
|
|
75
|
+
name: 'autoPlay',
|
|
76
|
+
title: '自动播放',
|
|
77
|
+
setter: 'SwitchSetter',
|
|
78
|
+
extraProps: {
|
|
79
|
+
defaultValue: false,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'loop',
|
|
84
|
+
title: '循环播放',
|
|
85
|
+
setter: 'SwitchSetter',
|
|
86
|
+
extraProps: {
|
|
87
|
+
defaultValue: false,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'playbackRate',
|
|
92
|
+
title: '播放速度',
|
|
93
|
+
setter: {
|
|
94
|
+
componentName: 'SelectSetter',
|
|
95
|
+
props: {
|
|
96
|
+
options: [
|
|
97
|
+
{ label: '0.5x', value: 0.5 },
|
|
98
|
+
{ label: '0.75x', value: 0.75 },
|
|
99
|
+
{ label: '1x (正常)', value: 1 },
|
|
100
|
+
{ label: '1.25x', value: 1.25 },
|
|
101
|
+
{ label: '1.5x', value: 1.5 },
|
|
102
|
+
{ label: '2x', value: 2 },
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
extraProps: {
|
|
107
|
+
defaultValue: 1,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'volume',
|
|
112
|
+
title: '音量',
|
|
113
|
+
setter: {
|
|
114
|
+
componentName: 'SliderSetter',
|
|
115
|
+
props: {
|
|
116
|
+
min: 0,
|
|
117
|
+
max: 100,
|
|
118
|
+
step: 1,
|
|
119
|
+
suffix: '%',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
extraProps: {
|
|
123
|
+
defaultValue: 100,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
// 样式 Tab
|
|
129
|
+
{
|
|
130
|
+
type: 'group',
|
|
131
|
+
key: 'style',
|
|
132
|
+
title: '样式',
|
|
133
|
+
items: [
|
|
134
|
+
{
|
|
135
|
+
name: 'audioStyle',
|
|
136
|
+
title: '样式类型',
|
|
137
|
+
setter: {
|
|
138
|
+
componentName: 'SegmentedSetter',
|
|
139
|
+
props: {
|
|
140
|
+
options: [
|
|
141
|
+
{ label: '自定义', value: 'custom' },
|
|
142
|
+
{ label: '原生', value: 'native' },
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
extraProps: {
|
|
147
|
+
defaultValue: 'custom',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
{
|
|
156
|
+
padding: '6px 16px 12px',
|
|
157
|
+
},
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
/** 数据配置 */
|
|
161
|
+
const dataConfigGroup: FieldConfig = createDataConfigGroup([
|
|
162
|
+
{ name: 'src', label: 'src', type: 'string', required: true, description: '音频地址' },
|
|
163
|
+
])
|
|
164
|
+
|
|
165
|
+
export const configure = createStandardConfigure(componentConfigGroup, dataConfigGroup)
|
package/src/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audio Entry
|
|
3
|
-
* 音频组件入口
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { Audio as component } from './component'
|
|
7
|
-
export {
|
|
1
|
+
/**
|
|
2
|
+
* Audio Entry
|
|
3
|
+
* 音频组件入口
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export { Audio as component } from './component'
|
|
7
|
+
export { meta } from './meta'
|
package/src/meta.ts
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audio Meta
|
|
3
|
-
* 音频组件元数据
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { ComponentMetadata } from '@easy-editor/core'
|
|
7
|
-
import { MaterialGroup } from '@easy-editor/materials-shared'
|
|
8
|
-
import { COMPONENT_NAME, PACKAGE_NAME } from './constants'
|
|
9
|
-
import configure from './configure'
|
|
10
|
-
import snippets from './snippets'
|
|
11
|
-
import pkg from '../package.json'
|
|
12
|
-
|
|
13
|
-
export const meta: ComponentMetadata = {
|
|
14
|
-
componentName: COMPONENT_NAME,
|
|
15
|
-
title: '音频',
|
|
16
|
-
group: MaterialGroup.MEDIA,
|
|
17
|
-
devMode: 'proCode',
|
|
18
|
-
npm: {
|
|
19
|
-
package: PACKAGE_NAME,
|
|
20
|
-
version: pkg.version,
|
|
21
|
-
globalName: COMPONENT_NAME,
|
|
22
|
-
componentName: COMPONENT_NAME,
|
|
23
|
-
},
|
|
24
|
-
snippets,
|
|
25
|
-
configure,
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default meta
|
|
1
|
+
/**
|
|
2
|
+
* Audio Meta
|
|
3
|
+
* 音频组件元数据
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ComponentMetadata } from '@easy-editor/core'
|
|
7
|
+
import { MaterialGroup } from '@easy-editor/materials-shared'
|
|
8
|
+
import { COMPONENT_NAME, PACKAGE_NAME } from './constants'
|
|
9
|
+
import { configure } from './configure'
|
|
10
|
+
import { snippets } from './snippets'
|
|
11
|
+
import pkg from '../package.json'
|
|
12
|
+
|
|
13
|
+
export const meta: ComponentMetadata = {
|
|
14
|
+
componentName: COMPONENT_NAME,
|
|
15
|
+
title: '音频',
|
|
16
|
+
group: MaterialGroup.MEDIA,
|
|
17
|
+
devMode: 'proCode',
|
|
18
|
+
npm: {
|
|
19
|
+
package: PACKAGE_NAME,
|
|
20
|
+
version: pkg.version,
|
|
21
|
+
globalName: COMPONENT_NAME,
|
|
22
|
+
componentName: COMPONENT_NAME,
|
|
23
|
+
},
|
|
24
|
+
snippets,
|
|
25
|
+
configure,
|
|
26
|
+
}
|
package/src/snippets.ts
CHANGED
|
@@ -1,50 +1,61 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audio Snippets
|
|
3
|
-
* 音频组件代码片段
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { Snippet } from '@easy-editor/core'
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Audio Snippets
|
|
3
|
+
* 音频组件代码片段 - 使用共享数据源生成函数
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Snippet } from '@easy-editor/core'
|
|
7
|
+
import { generateStaticDataSource } from '@easy-editor/materials-shared'
|
|
8
|
+
import { COMPONENT_NAME } from './constants'
|
|
9
|
+
|
|
10
|
+
const snippets: Snippet[] = [
|
|
11
|
+
{
|
|
12
|
+
title: '音频播放器',
|
|
13
|
+
screenshot: '',
|
|
14
|
+
schema: {
|
|
15
|
+
componentName: COMPONENT_NAME,
|
|
16
|
+
title: '音频播放器',
|
|
17
|
+
props: {
|
|
18
|
+
$data: generateStaticDataSource({ src: '' }),
|
|
19
|
+
title: '音频文件',
|
|
20
|
+
autoPlay: false,
|
|
21
|
+
loop: false,
|
|
22
|
+
audioStyle: 'custom',
|
|
23
|
+
playbackRate: 1,
|
|
24
|
+
volume: 100,
|
|
25
|
+
rotation: 0,
|
|
26
|
+
opacity: 100,
|
|
27
|
+
background: 'transparent',
|
|
28
|
+
},
|
|
29
|
+
$dashboard: {
|
|
30
|
+
rect: {
|
|
31
|
+
width: 300,
|
|
32
|
+
height: 60,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: '原生音频',
|
|
39
|
+
screenshot: '',
|
|
40
|
+
schema: {
|
|
41
|
+
componentName: COMPONENT_NAME,
|
|
42
|
+
title: '原生音频',
|
|
43
|
+
props: {
|
|
44
|
+
$data: generateStaticDataSource({ src: '' }),
|
|
45
|
+
title: '音频文件',
|
|
46
|
+
audioStyle: 'native',
|
|
47
|
+
rotation: 0,
|
|
48
|
+
opacity: 100,
|
|
49
|
+
background: 'transparent',
|
|
50
|
+
},
|
|
51
|
+
$dashboard: {
|
|
52
|
+
rect: {
|
|
53
|
+
width: 300,
|
|
54
|
+
height: 60,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
export { snippets }
|
package/tsconfig.json
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"emitDeclarationOnly": true,
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"newLine": "LF",
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"moduleResolution": "Bundler",
|
|
9
|
+
"strict": true,
|
|
10
|
+
"strictNullChecks": true,
|
|
11
|
+
"jsx": "react-jsx",
|
|
12
|
+
"esModuleInterop": true,
|
|
13
|
+
"allowSyntheticDefaultImports": true,
|
|
14
|
+
"strictPropertyInitialization": false,
|
|
15
|
+
"outDir": "./dist",
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
},
|
|
18
|
+
"exclude": ["node_modules", "dist"],
|
|
19
|
+
"include": ["./src"]
|
|
20
|
+
}
|