Skip to content

Commit

Permalink
Merge pull request umijs#212 from ant-design/fix-mutilple-import
Browse files Browse the repository at this point in the history
Fix multiple imports
  • Loading branch information
yesmeck authored Mar 8, 2018
2 parents 814449b + faa288f commit 5521e62
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export default class Plugin {
}

importMethod(methodName, file) {
// disable selectedMethods cache, it don't work in babel7
if (true /*!this.selectedMethods[methodName]*/) { // eslint-disable-line
if (!this.selectedMethods[methodName]) {
const libraryDirectory = this.libraryDirectory;
const style = this.style;
const transformedMethodName = this.camel2UnderlineComponentName // eslint-disable-line
Expand All @@ -63,7 +62,7 @@ export default class Plugin {
addSideEffect(file.path, `${path}/style/css`);
}
}
return this.selectedMethods[methodName];
return Object.assign({}, this.selectedMethods[methodName]);
}

buildExpressionHandler(node, props, path, state) {
Expand Down

0 comments on commit 5521e62

Please sign in to comment.