Skip to content

Commit 0541a08

Browse files
committed
fix: issue with vue build
1 parent 8def7e1 commit 0541a08

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* @type {import('@builder.io/mitosis').MitosisPlugin}
3+
*/
4+
module.exports = () => ({
5+
code: {
6+
post: (code) => {
7+
return code
8+
.replaceAll(':key="undefined"', '')
9+
.replaceAll('key={undefined}', '');
10+
}
11+
}
12+
});

packages/components/configs/stencil/index.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const onClickPlugin = require('../plugins/on-click.cjs');
2+
const undefinedKeyPlugin = require('../plugins/undefined-key.cjs');
23

34
/**
45
* @type {import('@builder.io/mitosis').ToStencilOptions}
@@ -9,5 +10,5 @@ module.exports = {
910
enabled: true,
1011
customRef: '_ref'
1112
},
12-
plugins: [onClickPlugin]
13+
plugins: [undefinedKeyPlugin, onClickPlugin]
1314
};
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
const onClickPlugin = require('../plugins/on-click.cjs');
22
const defineOptionsPlugin = require('../plugins/vue/define-options.cjs');
3+
const undefinedKeyPlugin = require('../plugins/undefined-key.cjs');
34

45
/**
56
* @type {import('@builder.io/mitosis').ToVueOptions}
67
*/
78
module.exports = {
89
typescript: true,
910
api: 'composition',
10-
plugins: [onClickPlugin, defineOptionsPlugin]
11+
plugins: [undefinedKeyPlugin, onClickPlugin, defineOptionsPlugin]
1112
};

showcases/vue-showcase/src/components/loading-indicator/LoadingIndicator.vue

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)