Skip to content

Commit

Permalink
feat: 支持使用原生小程序组件和页面
Browse files Browse the repository at this point in the history
  • Loading branch information
meixg committed Apr 10, 2019
1 parent c8043f6 commit d62ecce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mars-build/src/compiler/script/config.js
Expand Up @@ -14,7 +14,8 @@ exports.compile = function compile(source, options) {
Object.keys(components).forEach(k => {
components[k] = components[k].replace(/\.vue$/, '');
});
config.usingComponents = components;

config.usingComponents = Object.assign(components, config.usingComponents || {});
return {
code: JSON.stringify(config)
};
Expand Down

0 comments on commit d62ecce

Please sign in to comment.