vite-plugin-taro-runtime 0.7.3-beta.0 → 0.7.3-beta.2
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/dist/plugin-html/runtime.js +421 -0
- package/dist/plugin-html/runtime.js.map +1 -0
- package/package.json +17 -14
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { isHasExtractProp } from '@tarojs/runtime';
|
|
2
|
+
import { isString, isFunction, toCamelCase, hooks, warn } from '@tarojs/shared';
|
|
3
|
+
|
|
4
|
+
function genAttrMapFnFromDir(dir) {
|
|
5
|
+
const fn = function (key, value) {
|
|
6
|
+
const lowerKey = key.toLowerCase();
|
|
7
|
+
if (lowerKey in dir) {
|
|
8
|
+
const res = dir[lowerKey];
|
|
9
|
+
if (isString(res)) {
|
|
10
|
+
key = res;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
key = res[0];
|
|
14
|
+
value = res[1][value] || value;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return [key, value];
|
|
18
|
+
};
|
|
19
|
+
return fn;
|
|
20
|
+
}
|
|
21
|
+
// Taro normally fills this set by rewriting runtime.js from its compiler plugin.
|
|
22
|
+
// VPT pins the upstream defaults at install time instead: no CLI, Babel, or per-build file mutation.
|
|
23
|
+
const inlineElements = new Set(['i', 'abbr', 'select', 'acronym', 'small', 'bdi', 'kbd', 'strong', 'big', 'sub', 'sup', 'br', 'mark', 'meter', 'template', 'cite', 'object', 'time', 'code', 'output', 'u', 'data', 'picture', 'tt', 'datalist', 'var', 'dfn', 'del', 'q', 'em', 's', 'embed', 'samp', 'b']);
|
|
24
|
+
const blockElements = new Set(['body', 'svg', 'address', 'fieldset', 'li', 'span', 'article', 'figcaption', 'main', 'aside', 'figure', 'nav', 'blockquote', 'footer', 'ol', 'details', 'p', 'dialog', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'pre', 'dd', 'header', 'section', 'div', 'hgroup', 'table', 'dl', 'hr', 'ul', 'dt', 'view', 'view-block']);
|
|
25
|
+
const specialElements = new Map([
|
|
26
|
+
['slot', 'slot'],
|
|
27
|
+
['form', 'form'],
|
|
28
|
+
['iframe', 'web-view'],
|
|
29
|
+
['img', 'image'],
|
|
30
|
+
['audio', 'audio'],
|
|
31
|
+
['video', 'video'],
|
|
32
|
+
['canvas', 'canvas'],
|
|
33
|
+
['a', {
|
|
34
|
+
mapName(props) {
|
|
35
|
+
if (props.as && isString(props.as))
|
|
36
|
+
return props.as.toLowerCase();
|
|
37
|
+
return !props.href || (/^javascript/.test(props.href)) ? 'view' : 'navigator';
|
|
38
|
+
},
|
|
39
|
+
mapNameCondition: ['href'],
|
|
40
|
+
mapAttr: genAttrMapFnFromDir({
|
|
41
|
+
href: 'url',
|
|
42
|
+
target: ['openType', {
|
|
43
|
+
_blank: 'navigate',
|
|
44
|
+
_self: 'redirect'
|
|
45
|
+
}]
|
|
46
|
+
})
|
|
47
|
+
}],
|
|
48
|
+
['input', {
|
|
49
|
+
mapName(props) {
|
|
50
|
+
if (props.type === 'checkbox') {
|
|
51
|
+
return 'checkbox';
|
|
52
|
+
}
|
|
53
|
+
else if (props.type === 'radio') {
|
|
54
|
+
return 'radio';
|
|
55
|
+
}
|
|
56
|
+
return 'input';
|
|
57
|
+
},
|
|
58
|
+
mapNameCondition: ['type'],
|
|
59
|
+
mapAttr(key, value, props) {
|
|
60
|
+
const htmlKey = key.toLowerCase();
|
|
61
|
+
if (htmlKey === 'autofocus') {
|
|
62
|
+
key = 'focus';
|
|
63
|
+
}
|
|
64
|
+
else if (htmlKey === 'readonly') {
|
|
65
|
+
if (props.disabled === true) {
|
|
66
|
+
value = true;
|
|
67
|
+
}
|
|
68
|
+
key = 'disabled';
|
|
69
|
+
}
|
|
70
|
+
else if (htmlKey === 'type') {
|
|
71
|
+
if (value === 'password') {
|
|
72
|
+
key = 'password';
|
|
73
|
+
value = true;
|
|
74
|
+
}
|
|
75
|
+
else if (value === 'tel') {
|
|
76
|
+
value = 'number';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
else if (htmlKey === 'maxlength') {
|
|
80
|
+
key = 'maxlength';
|
|
81
|
+
}
|
|
82
|
+
return [key, value];
|
|
83
|
+
}
|
|
84
|
+
}],
|
|
85
|
+
['label', {
|
|
86
|
+
mapName: 'label',
|
|
87
|
+
mapAttr: genAttrMapFnFromDir({
|
|
88
|
+
htmlfor: 'for'
|
|
89
|
+
})
|
|
90
|
+
}],
|
|
91
|
+
['textarea', {
|
|
92
|
+
mapName: 'textarea',
|
|
93
|
+
mapAttr: genAttrMapFnFromDir({
|
|
94
|
+
autofocus: 'focus',
|
|
95
|
+
readonly: 'disabled',
|
|
96
|
+
maxlength: 'maxlength'
|
|
97
|
+
})
|
|
98
|
+
}],
|
|
99
|
+
['progress', {
|
|
100
|
+
mapName: 'progress',
|
|
101
|
+
mapAttr(key, value, props) {
|
|
102
|
+
if (key === 'value') {
|
|
103
|
+
const max = props.max || 1;
|
|
104
|
+
key = 'percent';
|
|
105
|
+
value = Math.round(value / max * 100);
|
|
106
|
+
}
|
|
107
|
+
return [key, value];
|
|
108
|
+
}
|
|
109
|
+
}],
|
|
110
|
+
['button', {
|
|
111
|
+
mapName: 'button',
|
|
112
|
+
mapAttr(key, value) {
|
|
113
|
+
if (key === 'type' && (value === 'submit' || value === 'reset')) {
|
|
114
|
+
key = 'formType';
|
|
115
|
+
}
|
|
116
|
+
return [key, value];
|
|
117
|
+
}
|
|
118
|
+
}]
|
|
119
|
+
]);
|
|
120
|
+
|
|
121
|
+
function isHtmlTags(nodeName) {
|
|
122
|
+
if (inlineElements.has(nodeName) || blockElements.has(nodeName) || specialElements.has(nodeName)) {
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
function getMappedType(nodeName, rawProps, node) {
|
|
128
|
+
if (inlineElements.has(nodeName)) {
|
|
129
|
+
return 'text';
|
|
130
|
+
}
|
|
131
|
+
else if (specialElements.has(nodeName)) {
|
|
132
|
+
const mapping = specialElements.get(nodeName);
|
|
133
|
+
if (isString(mapping)) {
|
|
134
|
+
return mapping;
|
|
135
|
+
}
|
|
136
|
+
const { mapName } = mapping;
|
|
137
|
+
return isFunction(mapName) ? mapName(rawProps) : mapName;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
// fix #15326
|
|
141
|
+
if (process.env.TARO_ENV === 'swan')
|
|
142
|
+
return 'view';
|
|
143
|
+
if (node) {
|
|
144
|
+
const { props } = node;
|
|
145
|
+
for (const prop in props) {
|
|
146
|
+
const propInCamelCase = toCamelCase(prop);
|
|
147
|
+
if (propInCamelCase === 'catchMove' && props[prop] !== false) {
|
|
148
|
+
return 'catch-view';
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (!node) {
|
|
153
|
+
return 'view';
|
|
154
|
+
}
|
|
155
|
+
if (node.isOnlyClickBinded() && !isHasExtractProp(node)) {
|
|
156
|
+
return 'click-view';
|
|
157
|
+
}
|
|
158
|
+
else if (node.isAnyEventBinded()) {
|
|
159
|
+
return 'view';
|
|
160
|
+
}
|
|
161
|
+
else if (isHasExtractProp(node)) {
|
|
162
|
+
return 'static-view';
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
return 'pure-view';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function getAttrMapFn(nodeName) {
|
|
170
|
+
const mapping = specialElements.get(nodeName);
|
|
171
|
+
if (!isString(mapping)) {
|
|
172
|
+
return mapping === null || mapping === void 0 ? void 0 : mapping.mapAttr;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function getMapNameByCondition(nodeName, attr, props) {
|
|
176
|
+
const mapping = specialElements.get(nodeName);
|
|
177
|
+
if (!mapping || isString(mapping))
|
|
178
|
+
return;
|
|
179
|
+
const { mapName, mapNameCondition } = mapping;
|
|
180
|
+
if (!mapNameCondition)
|
|
181
|
+
return;
|
|
182
|
+
if (mapNameCondition.indexOf(attr) > -1 && !isString(mapName)) {
|
|
183
|
+
return mapName(props);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function mapNameByContion(nodeName, key, element, componentsAlias) {
|
|
187
|
+
const mapName = getMapNameByCondition(nodeName, key, element.props);
|
|
188
|
+
if (mapName) {
|
|
189
|
+
const mapNameAlias = componentsAlias[mapName]._num;
|
|
190
|
+
element.enqueueUpdate({
|
|
191
|
+
path: `${element._path}.${"nn" /* Shortcuts.NodeName */}`,
|
|
192
|
+
value: mapNameAlias
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
function ensureHtmlClass(tagName, className = '') {
|
|
197
|
+
const classList = className.split(' ');
|
|
198
|
+
const htmlClass = `h5-${tagName}`;
|
|
199
|
+
if (classList.indexOf(htmlClass) === -1) {
|
|
200
|
+
classList.unshift(htmlClass);
|
|
201
|
+
}
|
|
202
|
+
return classList.join(' ');
|
|
203
|
+
}
|
|
204
|
+
function ensureRect(props, style = '') {
|
|
205
|
+
let cssText = style;
|
|
206
|
+
const { width, height } = props;
|
|
207
|
+
if (width) {
|
|
208
|
+
cssText = `width: ${width};${cssText}`;
|
|
209
|
+
}
|
|
210
|
+
if (height) {
|
|
211
|
+
cssText = `height: ${height};${cssText}`;
|
|
212
|
+
}
|
|
213
|
+
return cssText;
|
|
214
|
+
}
|
|
215
|
+
function defineMappedProp(obj, propName, mapName) {
|
|
216
|
+
Object.defineProperty(obj, propName, {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
configurable: true,
|
|
219
|
+
get() {
|
|
220
|
+
return obj[mapName];
|
|
221
|
+
},
|
|
222
|
+
set(val) {
|
|
223
|
+
obj[mapName] = val;
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
hooks.tap('modifyHydrateData', (data, node) => {
|
|
229
|
+
const nodeName = data["nn" /* Shortcuts.NodeName */];
|
|
230
|
+
if (!isHtmlTags(nodeName))
|
|
231
|
+
return;
|
|
232
|
+
process.env.NODE_ENV !== 'production' && warn(data["nn" /* Shortcuts.NodeName */] === 'select', '请使用 Picker 组件代替 <select>');
|
|
233
|
+
// map nodeName
|
|
234
|
+
data["nn" /* Shortcuts.NodeName */] = getMappedType(nodeName, data, node);
|
|
235
|
+
// map attr Key/Value
|
|
236
|
+
const attrMapFn = getAttrMapFn(nodeName);
|
|
237
|
+
if (attrMapFn) {
|
|
238
|
+
for (const key in data) {
|
|
239
|
+
const value = data[key];
|
|
240
|
+
const [mapKey, mapValue] = attrMapFn(key, value, data);
|
|
241
|
+
if (key !== mapKey) {
|
|
242
|
+
delete data[key];
|
|
243
|
+
data[mapKey] = mapValue;
|
|
244
|
+
}
|
|
245
|
+
else if (value !== mapValue) {
|
|
246
|
+
data[key] = mapValue;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if (nodeName === 'br') {
|
|
251
|
+
data["cn" /* Shortcuts.Childnodes */] = [{
|
|
252
|
+
["nn" /* Shortcuts.NodeName */]: '#text',
|
|
253
|
+
v: '\n'
|
|
254
|
+
}];
|
|
255
|
+
}
|
|
256
|
+
data["cl" /* Shortcuts.Class */] = ensureHtmlClass(nodeName, data["cl" /* Shortcuts.Class */]);
|
|
257
|
+
data["st" /* Shortcuts.Style */] = ensureRect(data, data["st" /* Shortcuts.Style */]);
|
|
258
|
+
});
|
|
259
|
+
hooks.tap('modifySetAttrPayload', (element, key, payload, componentsAlias) => {
|
|
260
|
+
const { nodeName, _path, props } = element;
|
|
261
|
+
if (!isHtmlTags(nodeName))
|
|
262
|
+
return;
|
|
263
|
+
// map nodeName
|
|
264
|
+
mapNameByContion(nodeName, key, element, componentsAlias);
|
|
265
|
+
const mapName = getMappedType(nodeName, props);
|
|
266
|
+
const alias = componentsAlias[mapName];
|
|
267
|
+
// map attr Key/Value
|
|
268
|
+
const attrMapFn = getAttrMapFn(nodeName);
|
|
269
|
+
if (attrMapFn) {
|
|
270
|
+
const value = payload.value;
|
|
271
|
+
const [mapKey, mapValue] = attrMapFn(key, value, props);
|
|
272
|
+
payload.path = `${_path}.${alias[mapKey] || mapKey}`;
|
|
273
|
+
payload.value = mapValue;
|
|
274
|
+
}
|
|
275
|
+
else if (alias[key] && alias[key] !== key) {
|
|
276
|
+
payload.path = `${_path}.${toCamelCase(alias[key])}`;
|
|
277
|
+
}
|
|
278
|
+
if (key === "cl" /* Shortcuts.Class */) {
|
|
279
|
+
payload.value = ensureHtmlClass(nodeName, payload.value);
|
|
280
|
+
}
|
|
281
|
+
else if (key === "st" /* Shortcuts.Style */ || key === 'width' || key === 'height') {
|
|
282
|
+
payload.path = `${_path}.${"st" /* Shortcuts.Style */}`;
|
|
283
|
+
payload.value = ensureRect(props, element.style.cssText);
|
|
284
|
+
}
|
|
285
|
+
if (blockElements.has(element.nodeName) && process.env.TARO_ENV !== 'swan') {
|
|
286
|
+
const viewAlias = componentsAlias.view._num;
|
|
287
|
+
const staticViewAlias = componentsAlias['static-view']._num;
|
|
288
|
+
const catchViewAlias = componentsAlias['catch-view']._num;
|
|
289
|
+
const clickViewAlias = componentsAlias['click-view']._num;
|
|
290
|
+
const qualifiedNameInCamelCase = toCamelCase(key);
|
|
291
|
+
const dataPath = `${_path}.${"nn" /* Shortcuts.NodeName */}`;
|
|
292
|
+
if (qualifiedNameInCamelCase === 'catchMove') {
|
|
293
|
+
// catchMove = true: catch-view
|
|
294
|
+
// catchMove = false: view or click-view or static-view
|
|
295
|
+
element.enqueueUpdate({
|
|
296
|
+
path: dataPath,
|
|
297
|
+
value: payload.value ? catchViewAlias : (element.isOnlyClickBinded() && !isHasExtractProp(element) ? clickViewAlias : (element.isAnyEventBinded() ? viewAlias : staticViewAlias))
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
else if (isHasExtractProp(element) && !element.isAnyEventBinded()) {
|
|
301
|
+
// pure-view => static-view
|
|
302
|
+
// static-view => static-view 因为没有办法分辨之前是不是 pure,所以就算之前是 static 也需要 setData
|
|
303
|
+
element.enqueueUpdate({
|
|
304
|
+
path: dataPath,
|
|
305
|
+
value: staticViewAlias
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
hooks.tap('modifyRmAttrPayload', (element, key, payload, componentsAlias) => {
|
|
311
|
+
const { nodeName, _path, props } = element;
|
|
312
|
+
if (!isHtmlTags(nodeName))
|
|
313
|
+
return;
|
|
314
|
+
// map nodeName
|
|
315
|
+
mapNameByContion(nodeName, key, element, componentsAlias);
|
|
316
|
+
const mapName = getMappedType(nodeName, props);
|
|
317
|
+
const alias = componentsAlias[mapName];
|
|
318
|
+
// map attr Key/Value
|
|
319
|
+
const attrMapFn = getAttrMapFn(nodeName);
|
|
320
|
+
if (attrMapFn) {
|
|
321
|
+
const value = payload[key];
|
|
322
|
+
const [mapKey] = attrMapFn(key, value, props);
|
|
323
|
+
payload.path = `${_path}.${alias[mapKey] || mapKey}`;
|
|
324
|
+
}
|
|
325
|
+
else if (alias[key] && alias[key] !== key) {
|
|
326
|
+
payload.path = `${_path}.${toCamelCase(alias[key])}`;
|
|
327
|
+
}
|
|
328
|
+
if (key === "cl" /* Shortcuts.Class */) {
|
|
329
|
+
payload.value = ensureHtmlClass(nodeName, payload.value);
|
|
330
|
+
}
|
|
331
|
+
else if (key === "st" /* Shortcuts.Style */ || key === 'width' || key === 'height') {
|
|
332
|
+
payload.path = `${_path}.${"st" /* Shortcuts.Style */}`;
|
|
333
|
+
payload.value = ensureRect(props, element.style.cssText);
|
|
334
|
+
}
|
|
335
|
+
if (blockElements.has(element.nodeName) && process.env.TARO_ENV !== 'swan') {
|
|
336
|
+
const viewAlias = componentsAlias.view._num;
|
|
337
|
+
const staticViewAlias = componentsAlias['static-view']._num;
|
|
338
|
+
const pureViewAlias = componentsAlias['pure-view']._num;
|
|
339
|
+
const clickViewAlias = componentsAlias['click-view']._num;
|
|
340
|
+
const qualifiedNameInCamelCase = toCamelCase(key);
|
|
341
|
+
const dataPath = `${_path}.${"nn" /* Shortcuts.NodeName */}`;
|
|
342
|
+
if (qualifiedNameInCamelCase === 'catchMove') {
|
|
343
|
+
// catch-view => view or click-view or static-view or pure-view
|
|
344
|
+
element.enqueueUpdate({
|
|
345
|
+
path: dataPath,
|
|
346
|
+
value: element.isOnlyClickBinded() && !isHasExtractProp(element) ? clickViewAlias : (element.isAnyEventBinded() ? viewAlias : (isHasExtractProp(element) ? staticViewAlias : pureViewAlias))
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
else if (!isHasExtractProp(element)) {
|
|
350
|
+
// static-view => pure-view
|
|
351
|
+
// pure-view => pure-view 因为没有办法分辨之前是不是 pure,所以就算之前是 pure 也需要 setData
|
|
352
|
+
element.enqueueUpdate({
|
|
353
|
+
path: dataPath,
|
|
354
|
+
value: pureViewAlias
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
hooks.tap('onAddEvent', (type, _handler, _options, node) => {
|
|
360
|
+
node = node;
|
|
361
|
+
if (!isHtmlTags(node.nodeName))
|
|
362
|
+
return;
|
|
363
|
+
if (type === 'click') {
|
|
364
|
+
defineMappedProp(node.__handlers, type, 'tap');
|
|
365
|
+
}
|
|
366
|
+
else if (node.nodeName === 'input') {
|
|
367
|
+
if (type === 'change') {
|
|
368
|
+
if (node.props.type === 'checkbox' || node.props.type === 'radio') {
|
|
369
|
+
defineMappedProp(node.__handlers, type, 'tap');
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
defineMappedProp(node.__handlers, type, 'input');
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
else if (type === 'keypress') {
|
|
376
|
+
defineMappedProp(node.__handlers, type, 'confirm');
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
hooks.tap('modifyTaroEvent', (event, element) => {
|
|
381
|
+
const { nodeName, props } = element;
|
|
382
|
+
if (nodeName === 'input' && event.type === 'tap') {
|
|
383
|
+
if (props.type === 'checkbox') {
|
|
384
|
+
props.checked = !props.checked;
|
|
385
|
+
}
|
|
386
|
+
else if (props.type === 'radio' && !props.checked) {
|
|
387
|
+
props.checked = true;
|
|
388
|
+
}
|
|
389
|
+
if (event.mpEvent) {
|
|
390
|
+
const { currentTarget, target } = event.mpEvent;
|
|
391
|
+
currentTarget.checked = props.checked;
|
|
392
|
+
if (target.id === currentTarget.id) {
|
|
393
|
+
target.checked = props.checked;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
hooks.tap('modifyAddEventListener', (element, sideEffect, getComponentsAlias) => {
|
|
399
|
+
// 如果是从没有事件绑定到有事件绑定,且是 block 元素,则转换为 view
|
|
400
|
+
if (blockElements.has(element.nodeName) && sideEffect !== false && !element.isAnyEventBinded()) {
|
|
401
|
+
const componentsAlias = getComponentsAlias();
|
|
402
|
+
const alias = componentsAlias.view._num;
|
|
403
|
+
element.enqueueUpdate({
|
|
404
|
+
path: `${element._path}.${"nn" /* Shortcuts.NodeName */}`,
|
|
405
|
+
value: alias
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
hooks.tap('modifyRemoveEventListener', (element, sideEffect, getComponentsAlias) => {
|
|
410
|
+
// 如果已没有绑定事件,且是 block 元素,则转换为 static-view 或 pure-view
|
|
411
|
+
if (process.env.TARO_ENV !== 'swan' && blockElements.has(element.nodeName) && sideEffect !== false && !element.isAnyEventBinded()) {
|
|
412
|
+
const componentsAlias = getComponentsAlias();
|
|
413
|
+
const value = isHasExtractProp(element) ? 'static-view' : 'pure-view';
|
|
414
|
+
const valueAlias = componentsAlias[value]._num;
|
|
415
|
+
element.enqueueUpdate({
|
|
416
|
+
path: `${element._path}.${"nn" /* Shortcuts.NodeName */}`,
|
|
417
|
+
value: valueAlias
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sources":["../src/constant.ts","../src/utils.ts","../src/runtime.ts"],"sourcesContent":[null,null,null],"names":[],"mappings":";;;AAiBA,SAAS,mBAAmB,CAAE,GAA2D,EAAA;AACvF,IAAA,MAAM,EAAE,GAA0B,UAAU,GAAG,EAAE,KAAK,EAAA;AACpD,QAAA,MAAM,QAAQ,GAAG,GAAG,CAAC,WAAW,EAAE;AAClC,QAAA,IAAI,QAAQ,IAAI,GAAG,EAAE;AACnB,YAAA,MAAM,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC;AACzB,YAAA,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACjB,GAAG,GAAG,GAAG;;iBACJ;AACL,gBAAA,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;gBACZ,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK;;;AAGlC,QAAA,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;AACrB,KAAC;AACD,IAAA,OAAO,EAAE;AACX;AAEO,MAAM,cAAc,GAAG,IAAI,GAAG,CAAS,EAAE,CAAC;AAC1C,MAAM,aAAa,GAAG,IAAI,GAAG,CAAS,EAAE,CAAC;AACzC,MAAM,eAAe,GAAG,IAAI,GAAG,CAA+B;IACnE,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,QAAQ,EAAE,UAAU,CAAC;IACtB,CAAC,KAAK,EAAE,OAAO,CAAC;IAChB,CAAC,OAAO,EAAE,OAAO,CAAC;IAClB,CAAC,OAAO,EAAE,OAAO,CAAC;IAClB,CAAC,QAAQ,EAAE,QAAQ,CAAC;AACpB,IAAA,CAAC,GAAG,EAAE;AACJ,YAAA,OAAO,CAAE,KAAK,EAAA;gBACZ,IAAI,KAAK,CAAC,EAAE,IAAI,QAAQ,CAAC,KAAK,CAAC,E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B,YAAA,IAAI,EAAE,CAAG,EAAA,OAAO,CAAC,KAAK,CAAA,CAAA,EAAI,8BAAoB,CAAA;AAC9C,YAAA,KAAK,EAAE;AACR,SAAA,CAAC;;AAEN,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-taro-runtime",
|
|
3
|
-
"version": "0.7.3-beta.
|
|
3
|
+
"version": "0.7.3-beta.2",
|
|
4
4
|
"description": "Taro runtime, React, and platform support for vite-plugin-taro.",
|
|
5
5
|
"author": "sep2",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"default": "./dist/react/react.esm.js"
|
|
67
67
|
},
|
|
68
68
|
"./plugin-framework-react/runtime": "./dist/plugin-framework-react/runtime.js",
|
|
69
|
+
"./plugin-html/runtime": "./dist/plugin-html/runtime.js",
|
|
69
70
|
"./plugin-platform-weapp/runtime": "./dist/plugin-platform-weapp/runtime.js",
|
|
70
71
|
"./plugin-platform-weapp/components-react": {
|
|
71
72
|
"types": "./dist/plugin-platform-weapp/types/components-react.d.ts",
|
|
@@ -104,6 +105,7 @@
|
|
|
104
105
|
"./dist/runtime/dom-external/index.js",
|
|
105
106
|
"./dist/react/react.esm.js",
|
|
106
107
|
"./dist/plugin-framework-react/runtime.js",
|
|
108
|
+
"./dist/plugin-html/runtime.js",
|
|
107
109
|
"./dist/plugin-platform-weapp/runtime.js",
|
|
108
110
|
"./dist/plugin-platform-alipay/runtime.js",
|
|
109
111
|
"**/*.css",
|
|
@@ -130,38 +132,39 @@
|
|
|
130
132
|
"base64-js": "^1.5.1",
|
|
131
133
|
"hammerjs": "^2.0.8",
|
|
132
134
|
"history": "^5.3.0",
|
|
133
|
-
"hls.js": "^1.
|
|
135
|
+
"hls.js": "^1.7.3",
|
|
134
136
|
"ics": "^3.7.2",
|
|
135
137
|
"is-mobile": "^4.0.0",
|
|
136
138
|
"jsonp-retry": "^1.0.3",
|
|
137
|
-
"lodash-es": "4.
|
|
139
|
+
"lodash-es": "4.18.1",
|
|
138
140
|
"platform": "^1.3.6",
|
|
139
|
-
"query-string": "^9.
|
|
141
|
+
"query-string": "^9.5.1",
|
|
142
|
+
"react-reconciler": "0.34.0",
|
|
140
143
|
"resolve-pathname": "^3.0.0",
|
|
141
144
|
"swiper": "11.1.15",
|
|
145
|
+
"tslib": "^2.8.1",
|
|
142
146
|
"universal-router": "^9.2.0",
|
|
143
|
-
"whatwg-fetch": "^3.6.20"
|
|
144
|
-
"react-reconciler": "0.33.0",
|
|
145
|
-
"tslib": "^2.8.1"
|
|
147
|
+
"whatwg-fetch": "^3.6.20"
|
|
146
148
|
},
|
|
147
149
|
"peerDependencies": {
|
|
148
|
-
"react": "^19.
|
|
149
|
-
"react-dom": "^19.
|
|
150
|
+
"react": "^19.3.0",
|
|
151
|
+
"react-dom": "^19.3.0"
|
|
150
152
|
},
|
|
151
153
|
"devDependencies": {
|
|
152
154
|
"@tarojs/api": "4.2.1",
|
|
153
155
|
"@tarojs/components": "4.2.1",
|
|
154
|
-
"@tarojs/router": "4.2.1",
|
|
155
|
-
"@tarojs/taro": "4.2.1",
|
|
156
|
-
"@tarojs/taro-h5": "4.2.1",
|
|
157
|
-
"@types/react": "^19.2.18",
|
|
158
156
|
"@tarojs/plugin-framework-react": "4.2.1",
|
|
157
|
+
"@tarojs/plugin-html": "4.2.1",
|
|
159
158
|
"@tarojs/plugin-platform-alipay": "4.2.1",
|
|
160
159
|
"@tarojs/plugin-platform-h5": "4.2.1",
|
|
161
160
|
"@tarojs/plugin-platform-weapp": "4.2.1",
|
|
162
161
|
"@tarojs/react": "4.2.1",
|
|
162
|
+
"@tarojs/router": "4.2.1",
|
|
163
163
|
"@tarojs/runtime": "4.2.1",
|
|
164
|
-
"@
|
|
164
|
+
"@tarojs/taro": "4.2.1",
|
|
165
|
+
"@tarojs/taro-h5": "4.2.1",
|
|
166
|
+
"@types/node": "^26.5.1",
|
|
167
|
+
"@types/react": "^19.3.0",
|
|
165
168
|
"typescript": "^7.0.2"
|
|
166
169
|
},
|
|
167
170
|
"publishConfig": {
|