olum-compiler 0.2.5 → 0.2.6
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/compiler.js +3 -3
- package/package.json +1 -1
package/compiler.js
CHANGED
|
@@ -365,12 +365,12 @@ class Compiler {
|
|
|
365
365
|
if (isFullArr(modulesNames) && isFullArr(componentsNames)) { // there are components
|
|
366
366
|
debugLib("components exist");
|
|
367
367
|
const finalNames = [];
|
|
368
|
-
modulesNames.forEach(moduleName => componentsNames.forEach(compName => (moduleName !== "" && moduleName === compName) ? finalNames.push(moduleName) : null));
|
|
368
|
+
modulesNames.forEach(moduleName => componentsNames.forEach(compName => (moduleName !== "" && moduleName === compName) ? finalNames.push("{"+moduleName+"}") : null));
|
|
369
369
|
dataMethod = `
|
|
370
370
|
olumCompData() {
|
|
371
371
|
return {
|
|
372
372
|
name: "${className}",
|
|
373
|
-
components:
|
|
373
|
+
components: [ ${finalNames.join(", ")} ],
|
|
374
374
|
template: this.template(),
|
|
375
375
|
style: this.style(),
|
|
376
376
|
render: this.render.bind(this),
|
|
@@ -383,7 +383,7 @@ class Compiler {
|
|
|
383
383
|
olumCompData() {
|
|
384
384
|
return {
|
|
385
385
|
name: "${className}",
|
|
386
|
-
components:
|
|
386
|
+
components: [],
|
|
387
387
|
template: this.template(),
|
|
388
388
|
style: this.style(),
|
|
389
389
|
render: this.render.bind(this),
|