san和san-ssr版本升级后,ssr产出丢失属性
Closed this issue · 1 comments
smallluo commented
如何复现case
step 1:yarn init project
step 2:yarn add san@lastest san-ssr@lastest
step 3:node index.js
step 4:yarn upgrade san@3.8.6 san-ssr@1.11.2
step 5:node index.js
index.js
const san = require('san');
const {SanProject} = require('san-ssr');
const myApp = san.defineComponent({
template: '<div>Hello {{name}}!</div>',
initData: function () {
return {
name: ''
};
}
});
const app = san.defineComponent({
template: '<ui-content name="{{name}}" class="content-wrapper"/>',
components: {
'ui-content': myApp
},
initData: function () {
return {
name: ''
};
}
});
const project = new SanProject()
const render = project.compileToRenderer(app)
console.log(render({name: 'harttle'}))
github-actions commented
🎉 This issue has been resolved in version 4.6.1 🎉
The release is available on:
Your semantic-release bot 📦🚀