@marko/translator-default 5.30.1 → 5.31.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cdata/index[html].js +5 -5
- package/dist/cdata/index[vdom].js +2 -2
- package/dist/class.js +21 -21
- package/dist/comment/index[html].js +2 -2
- package/dist/declaration/index[html].js +2 -2
- package/dist/document-type/index[html].js +2 -2
- package/dist/index.js +165 -165
- package/dist/placeholder/index[html].js +17 -17
- package/dist/placeholder/index[vdom].js +5 -5
- package/dist/tag/attribute/directives/class.js +12 -12
- package/dist/tag/attribute/directives/no-update.js +8 -8
- package/dist/tag/attribute/directives/style.js +12 -12
- package/dist/tag/attribute/index.js +15 -15
- package/dist/tag/attribute/modifiers/scoped.js +11 -11
- package/dist/tag/attribute-tag.js +67 -67
- package/dist/tag/custom-tag.js +37 -37
- package/dist/tag/dynamic-tag.js +29 -29
- package/dist/tag/index.js +9 -9
- package/dist/tag/native-tag[html]/attributes.js +41 -41
- package/dist/tag/native-tag[html]/index.js +67 -67
- package/dist/tag/native-tag[vdom]/attributes.js +34 -34
- package/dist/tag/native-tag[vdom]/index.js +59 -59
- package/dist/tag/util.js +42 -42
- package/dist/taglib/core/conditional/translate-else-if.js +2 -2
- package/dist/taglib/core/conditional/translate-else.js +2 -2
- package/dist/taglib/core/conditional/util.js +5 -5
- package/dist/taglib/core/macro/translate.js +9 -9
- package/dist/taglib/core/parse-class.js +2 -2
- package/dist/taglib/core/transform-style.js +6 -6
- package/dist/taglib/core/translate-await.js +11 -11
- package/dist/taglib/core/translate-body.js +5 -5
- package/dist/taglib/core/translate-for.js +65 -65
- package/dist/taglib/core/translate-include-content.js +9 -9
- package/dist/taglib/core/translate-while.js +10 -10
- package/dist/taglib/migrate/all-templates.js +32 -5
- package/dist/text/index[html].js +2 -2
- package/dist/text/index[vdom].js +9 -9
- package/dist/util/add-dependencies.js +50 -39
- package/dist/util/get-component-files.js +2 -2
- package/dist/util/html-out-write.js +5 -5
- package/dist/util/key-manager.js +27 -27
- package/dist/util/optimize-vdom-create.js +31 -31
- package/dist/util/vdom-out-write.js +5 -5
- package/package.json +3 -3
@@ -6,9 +6,9 @@ function _default(path) {
|
|
6
6
|
const { node } = path;
|
7
7
|
|
8
8
|
path.replaceWith(
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
(0, _withPreviousLocation.default)(
|
10
|
+
(0, _htmlOutWrite.default)`<![CDATA[${_compiler.types.stringLiteral(node.value)}]]>`,
|
11
|
+
node
|
12
|
+
)
|
13
|
+
);
|
14
14
|
}
|
@@ -6,6 +6,6 @@ function _default(path) {
|
|
6
6
|
const { node } = path;
|
7
7
|
|
8
8
|
path.replaceWith(
|
9
|
-
|
10
|
-
|
9
|
+
(0, _withPreviousLocation.default)((0, _vdomOutWrite.default)("t", _compiler.types.stringLiteral(node.value)), node)
|
10
|
+
);
|
11
11
|
}
|
package/dist/class.js
CHANGED
@@ -10,11 +10,11 @@ function _default(path) {
|
|
10
10
|
|
11
11
|
const classProperties = [];
|
12
12
|
let onCreateMethod = body.find(
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
(prop) =>
|
14
|
+
prop.computed === false &&
|
15
|
+
_compiler.types.isIdentifier(prop.key) &&
|
16
|
+
prop.key.name === "onCreate"
|
17
|
+
);
|
18
18
|
|
19
19
|
const objectProperties = body.
|
20
20
|
map((prop) => {
|
@@ -27,34 +27,34 @@ function _default(path) {
|
|
27
27
|
} else if (_compiler.types.isClassProperty(prop) && !prop.static) {
|
28
28
|
if (!prop.declare) {
|
29
29
|
classProperties.push(
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
30
|
+
_compiler.types.assignmentExpression(
|
31
|
+
"=",
|
32
|
+
_compiler.types.memberExpression(_compiler.types.thisExpression(), prop.key, prop.computed),
|
33
|
+
prop.value || _compiler.types.unaryExpression("void", _compiler.types.numericLiteral(0))
|
34
|
+
)
|
35
|
+
);
|
36
36
|
}
|
37
37
|
|
38
38
|
return undefined;
|
39
39
|
}
|
40
40
|
|
41
41
|
throw file.buildCodeFrameError(
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
prop,
|
43
|
+
"Unsupported class property on component."
|
44
|
+
);
|
45
45
|
}).
|
46
46
|
filter(Boolean);
|
47
47
|
|
48
48
|
if (classProperties.length) {
|
49
49
|
if (!onCreateMethod) {
|
50
50
|
objectProperties.push(
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
51
|
+
onCreateMethod = _compiler.types.objectMethod(
|
52
|
+
"method",
|
53
|
+
_compiler.types.identifier("onCreate"),
|
54
|
+
[],
|
55
|
+
_compiler.types.blockStatement([])
|
56
|
+
)
|
57
|
+
);
|
58
58
|
}
|
59
59
|
|
60
60
|
onCreateMethod.body.body.unshift(...classProperties);
|
@@ -8,8 +8,8 @@ function _default(path) {
|
|
8
8
|
|
9
9
|
if (ieConditionalCommentRegExp.test(node.value)) {
|
10
10
|
path.replaceWith(
|
11
|
-
|
12
|
-
|
11
|
+
(0, _withPreviousLocation.default)((0, _htmlOutWrite.default)`<!--${_compiler.types.stringLiteral(node.value)}-->`, node)
|
12
|
+
);
|
13
13
|
} else {
|
14
14
|
path.remove();
|
15
15
|
}
|
@@ -6,6 +6,6 @@ function _default(path) {
|
|
6
6
|
const { node } = path;
|
7
7
|
|
8
8
|
path.replaceWith(
|
9
|
-
|
10
|
-
|
9
|
+
(0, _withPreviousLocation.default)((0, _htmlOutWrite.default)`<?${_compiler.types.stringLiteral(node.value)}?>`, node)
|
10
|
+
);
|
11
11
|
}
|
@@ -6,6 +6,6 @@ function _default(path) {
|
|
6
6
|
const { node } = path;
|
7
7
|
|
8
8
|
path.replaceWith(
|
9
|
-
|
10
|
-
|
9
|
+
(0, _withPreviousLocation.default)((0, _htmlOutWrite.default)`<!${_compiler.types.stringLiteral(node.value)}>`, node)
|
10
|
+
);
|
11
11
|
}
|
package/dist/index.js
CHANGED
@@ -70,8 +70,8 @@ const analyze = {
|
|
70
70
|
meta.deps = meta.deps.map((filename) =>
|
71
71
|
typeof filename === "string" ?
|
72
72
|
(0, _babelUtils.resolveRelativePath)(file, filename) :
|
73
|
-
filename
|
74
|
-
|
73
|
+
filename
|
74
|
+
);
|
75
75
|
|
76
76
|
meta.imports = program.node.body.
|
77
77
|
filter((child) => _compiler.types.isImportDeclaration(child)).
|
@@ -90,11 +90,11 @@ const analyze = {
|
|
90
90
|
if (tagDef.parseOptions && tagDef.parseOptions.import) {
|
91
91
|
// TODO: the taglib should be updated to support this as a top level option.
|
92
92
|
meta.deps.push(
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
93
|
+
(0, _path.resolve)(
|
94
|
+
tagDef.dir,
|
95
|
+
(0, _path.resolve)(tagDef.dir, tagDef.parseOptions.import)
|
96
|
+
)
|
97
|
+
);
|
98
98
|
}
|
99
99
|
}
|
100
100
|
} else if (tag.get("name").isStringLiteral()) {
|
@@ -194,12 +194,12 @@ const translate = {
|
|
194
194
|
if (file.metadata.marko.moduleCode) {
|
195
195
|
path.
|
196
196
|
replaceWith(
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
0].
|
197
|
+
_compiler.types.program(
|
198
|
+
(0, _babelUtils.parseStatements)(file, file.metadata.marko.moduleCode),
|
199
|
+
undefined,
|
200
|
+
file.markoOpts.modules === "cjs" ? "script" : "module"
|
201
|
+
)
|
202
|
+
)[0].
|
203
203
|
skip();
|
204
204
|
return;
|
205
205
|
}
|
@@ -240,111 +240,111 @@ const translate = {
|
|
240
240
|
const componentClass =
|
241
241
|
componentFile &&
|
242
242
|
(0, _babelUtils.importDefault)(
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
243
|
+
file,
|
244
|
+
(0, _babelUtils.resolveRelativePath)(file, componentFile),
|
245
|
+
"marko_component"
|
246
|
+
) ||
|
247
247
|
_inlineComponentClass ||
|
248
248
|
_compiler.types.objectExpression([]);
|
249
249
|
|
250
250
|
const componentIdentifier =
|
251
251
|
path.scope.generateUidIdentifier("marko_component");
|
252
252
|
const componentTypeIdentifier = path.scope.generateUidIdentifier(
|
253
|
-
|
254
|
-
|
253
|
+
"marko_componentType"
|
254
|
+
);
|
255
255
|
const templateIdentifier =
|
256
256
|
path.scope.generateUidIdentifier("marko_template");
|
257
257
|
const rendererIdentifier = (0, _babelUtils.importDefault)(
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
258
|
+
file,
|
259
|
+
"marko/src/runtime/components/renderer.js",
|
260
|
+
"marko_renderer"
|
261
|
+
);
|
262
262
|
const templateRendererMember = _compiler.types.memberExpression(
|
263
|
-
|
264
|
-
|
265
|
-
|
263
|
+
templateIdentifier,
|
264
|
+
_compiler.types.identifier("_")
|
265
|
+
);
|
266
266
|
const templateMetaMember = _compiler.types.memberExpression(
|
267
|
-
|
268
|
-
|
269
|
-
|
267
|
+
templateIdentifier,
|
268
|
+
_compiler.types.identifier("meta")
|
269
|
+
);
|
270
270
|
|
271
271
|
if (markoOpts.writeVersionComment) {
|
272
272
|
path.addComment(
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
273
|
+
"leading",
|
274
|
+
` Compiled using marko@${_package.version} - DO NOT EDIT`,
|
275
|
+
true
|
276
|
+
);
|
277
277
|
}
|
278
278
|
|
279
279
|
const runtimeTemplateIdentifier = path.scope.generateUidIdentifier("t");
|
280
280
|
|
281
281
|
path.unshiftContainer(
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
282
|
+
"body",
|
283
|
+
[
|
284
|
+
_compiler.types.importDeclaration(
|
285
|
+
[_compiler.types.importSpecifier(runtimeTemplateIdentifier, _compiler.types.identifier("t"))],
|
286
|
+
_compiler.types.stringLiteral(
|
287
|
+
`marko/${markoOpts.optimize ? "dist" : "src"}/runtime/${
|
288
|
+
isHTML ? "html" : "vdom"
|
289
|
+
}/${markoOpts.hot ? "hot-reload.js" : "index.js"}`
|
290
|
+
)
|
291
|
+
),
|
292
|
+
_compiler.types.variableDeclaration("const", [
|
293
|
+
_compiler.types.variableDeclarator(
|
294
|
+
componentTypeIdentifier,
|
295
|
+
_compiler.types.stringLiteral(meta.id)
|
296
|
+
),
|
297
|
+
_compiler.types.variableDeclarator(
|
298
|
+
templateIdentifier,
|
299
|
+
_compiler.types.callExpression(runtimeTemplateIdentifier, [
|
300
|
+
componentTypeIdentifier]
|
301
|
+
)
|
302
|
+
)]
|
303
|
+
),
|
304
|
+
includeMetaInSource &&
|
305
|
+
_compiler.types.expressionStatement(
|
306
|
+
_compiler.types.assignmentExpression(
|
307
|
+
"=",
|
308
|
+
_compiler.types.memberExpression(templateIdentifier, _compiler.types.identifier("path")),
|
309
|
+
_compiler.types.identifier("__filename")
|
310
|
+
)
|
311
|
+
),
|
312
|
+
_compiler.types.exportDefaultDeclaration(templateIdentifier)].
|
313
|
+
filter(Boolean)
|
314
|
+
);
|
315
315
|
|
316
316
|
path.pushContainer(
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
317
|
+
"body",
|
318
|
+
[
|
319
|
+
!isHTML &&
|
320
|
+
_compiler.types.expressionStatement(
|
321
|
+
_compiler.types.callExpression(
|
322
|
+
(0, _babelUtils.importNamed)(
|
323
|
+
file,
|
324
|
+
"marko/src/runtime/components/registry",
|
325
|
+
"r",
|
326
|
+
"marko_registerComponent"
|
327
|
+
),
|
328
|
+
[
|
329
|
+
componentTypeIdentifier,
|
330
|
+
_compiler.types.arrowFunctionExpression(
|
331
|
+
[],
|
332
|
+
componentBrowserFile ?
|
333
|
+
(0, _babelUtils.importDefault)(
|
334
|
+
file,
|
335
|
+
(0, _babelUtils.resolveRelativePath)(file, componentBrowserFile),
|
336
|
+
"marko_split_component"
|
337
|
+
) :
|
338
|
+
templateIdentifier
|
339
|
+
)]
|
340
|
+
|
341
|
+
)
|
342
|
+
),
|
343
|
+
_compiler.types.variableDeclaration("const", [
|
344
|
+
_compiler.types.variableDeclarator(componentIdentifier, componentClass)]
|
345
|
+
)].
|
346
|
+
filter(Boolean)
|
347
|
+
);
|
348
348
|
|
349
349
|
const templateRenderOptionsProps = [
|
350
350
|
_compiler.types.objectProperty(_compiler.types.identifier("t"), componentTypeIdentifier)];
|
@@ -352,107 +352,107 @@ const translate = {
|
|
352
352
|
|
353
353
|
if (!meta.component) {
|
354
354
|
templateRenderOptionsProps.push(
|
355
|
-
|
356
|
-
|
355
|
+
_compiler.types.objectProperty(_compiler.types.identifier("i"), _compiler.types.booleanLiteral(true))
|
356
|
+
);
|
357
357
|
}
|
358
358
|
|
359
359
|
if (componentBrowserFile) {
|
360
360
|
templateRenderOptionsProps.push(
|
361
|
-
|
362
|
-
|
361
|
+
_compiler.types.objectProperty(_compiler.types.identifier("s"), _compiler.types.booleanLiteral(true))
|
362
|
+
);
|
363
363
|
}
|
364
364
|
|
365
365
|
if (!markoOpts.optimize) {
|
366
366
|
templateRenderOptionsProps.push(
|
367
|
-
|
368
|
-
|
367
|
+
_compiler.types.objectProperty(_compiler.types.identifier("d"), _compiler.types.booleanLiteral(true))
|
368
|
+
);
|
369
369
|
}
|
370
370
|
|
371
371
|
path.pushContainer(
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
372
|
+
"body",
|
373
|
+
_compiler.types.expressionStatement(
|
374
|
+
_compiler.types.assignmentExpression(
|
375
|
+
"=",
|
376
|
+
templateRendererMember,
|
377
|
+
_compiler.types.callExpression(rendererIdentifier, [
|
378
|
+
_compiler.types.functionExpression(
|
379
|
+
null,
|
380
|
+
[
|
381
|
+
_compiler.types.identifier("input"),
|
382
|
+
_compiler.types.identifier("out"),
|
383
|
+
file._componentDefIdentifier,
|
384
|
+
file._componentInstanceIdentifier,
|
385
|
+
_compiler.types.identifier("state"),
|
386
|
+
_compiler.types.identifier("$global")],
|
387
|
+
|
388
|
+
renderBlock.node
|
389
|
+
),
|
390
|
+
_compiler.types.objectExpression(templateRenderOptionsProps),
|
391
|
+
componentIdentifier]
|
392
|
+
)
|
393
|
+
)
|
394
|
+
)
|
395
|
+
);
|
396
396
|
renderBlock.remove();
|
397
397
|
|
398
398
|
if (!isHTML) {
|
399
399
|
path.pushContainer(
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
400
|
+
"body",
|
401
|
+
_compiler.types.expressionStatement(
|
402
|
+
_compiler.types.assignmentExpression(
|
403
|
+
"=",
|
404
|
+
_compiler.types.memberExpression(templateIdentifier, _compiler.types.identifier("Component")),
|
405
|
+
_compiler.types.callExpression(
|
406
|
+
(0, _babelUtils.importDefault)(
|
407
|
+
file,
|
408
|
+
"marko/src/runtime/components/defineComponent.js",
|
409
|
+
"marko_defineComponent"
|
410
|
+
),
|
411
|
+
[componentIdentifier, templateRendererMember]
|
412
|
+
)
|
413
|
+
)
|
414
|
+
)
|
415
|
+
);
|
416
416
|
}
|
417
417
|
|
418
418
|
if (includeMetaInSource) {
|
419
419
|
const metaObject = _compiler.types.objectExpression([
|
420
|
-
_compiler.types.objectProperty(_compiler.types.identifier("id"), componentTypeIdentifier)]
|
421
|
-
|
420
|
+
_compiler.types.objectProperty(_compiler.types.identifier("id"), componentTypeIdentifier)]
|
421
|
+
);
|
422
422
|
|
423
423
|
if (meta.component) {
|
424
424
|
metaObject.properties.push(
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
425
|
+
_compiler.types.objectProperty(
|
426
|
+
_compiler.types.identifier("component"),
|
427
|
+
_compiler.types.stringLiteral(meta.component)
|
428
|
+
)
|
429
|
+
);
|
430
430
|
}
|
431
431
|
|
432
432
|
if (meta.deps.length) {
|
433
433
|
metaObject.properties.push(
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
434
|
+
_compiler.types.objectProperty(
|
435
|
+
_compiler.types.identifier("deps"),
|
436
|
+
(0, _babelUtils.parseExpression)(file, JSON.stringify(meta.deps))
|
437
|
+
)
|
438
|
+
);
|
439
439
|
}
|
440
440
|
|
441
441
|
if (meta.tags.length) {
|
442
442
|
metaObject.properties.push(
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
443
|
+
_compiler.types.objectProperty(
|
444
|
+
_compiler.types.identifier("tags"),
|
445
|
+
_compiler.types.arrayExpression(meta.tags.map((tag) => _compiler.types.stringLiteral(tag)))
|
446
|
+
)
|
447
|
+
);
|
448
448
|
}
|
449
449
|
|
450
450
|
path.pushContainer(
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
451
|
+
"body",
|
452
|
+
_compiler.types.expressionStatement(
|
453
|
+
_compiler.types.assignmentExpression("=", templateMetaMember, metaObject)
|
454
|
+
)
|
455
|
+
);
|
456
456
|
}
|
457
457
|
|
458
458
|
(0, _optimizeHtmlWrites.optimizeHTMLWrites)(path);
|
@@ -46,27 +46,27 @@ function _default(path) {
|
|
46
46
|
value = computed ?
|
47
47
|
_compiler.types.stringLiteral(escapeType.fn(computed.value)) :
|
48
48
|
_compiler.types.callExpression(
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
49
|
+
escapeType.name ?
|
50
|
+
(0, _babelUtils.importNamed)(
|
51
|
+
file,
|
52
|
+
escapeType.module,
|
53
|
+
escapeType.name,
|
54
|
+
escapeType.alias
|
55
|
+
) :
|
56
|
+
(0, _babelUtils.importDefault)(file, escapeType.module, escapeType.alias),
|
57
|
+
[value]
|
58
|
+
);
|
59
59
|
} else {
|
60
60
|
value = computed ?
|
61
61
|
_compiler.types.stringLiteral((0, _toString.default)(computed.value)) :
|
62
62
|
_compiler.types.callExpression(
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
63
|
+
(0, _babelUtils.importDefault)(
|
64
|
+
file,
|
65
|
+
"marko/src/runtime/helpers/to-string.js",
|
66
|
+
"marko_to_string"
|
67
|
+
),
|
68
|
+
[value]
|
69
|
+
);
|
70
70
|
}
|
71
71
|
|
72
72
|
const replacement = (0, _htmlOutWrite.default)`${value}`;
|
@@ -12,10 +12,10 @@ function _default(path) {
|
|
12
12
|
path.remove();
|
13
13
|
} else {
|
14
14
|
path.replaceWith(
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
(0, _withPreviousLocation.default)(
|
16
|
+
(0, _vdomOutWrite.default)(method, value, path.hub.file._componentInstanceIdentifier),
|
17
|
+
node
|
18
|
+
)
|
19
|
+
);
|
20
20
|
}
|
21
21
|
}
|
@@ -20,18 +20,18 @@ var _withPreviousLocation = _interopRequireDefault(require("../../../util/with-p
|
|
20
20
|
}
|
21
21
|
} else {
|
22
22
|
value.replaceWith(
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
23
|
+
(0, _withPreviousLocation.default)(
|
24
|
+
_compiler.types.callExpression(
|
25
|
+
(0, _babelUtils.importDefault)(
|
26
|
+
file,
|
27
|
+
"marko/src/runtime/helpers/class-value.js",
|
28
|
+
"marko_class_merge"
|
29
|
+
),
|
30
|
+
[value.node]
|
31
|
+
),
|
32
|
+
value.node
|
33
|
+
)
|
34
|
+
);
|
35
35
|
}
|
36
36
|
}
|
37
37
|
};exports.default = _default;
|