Skip to content

Commit

Permalink
Merge pull request #2 from LajnaLegenden/master
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotkid authored Mar 27, 2022
2 parents d99a308 + c42344b commit d126089
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ function activate(context) {
"[Lodash Treeshake] Cannot run with lodash imported with curly brases. E.g. `import {filter} from 'lodash';`"
);
return;
} else {

}
// if imported as `import lodash from 'lodash';`
else if(lcx.includes("* as ")) {
let spaces = x.split(" ");
lodashText = spaces[3];
break;
}
else{
let spaces = x.split(" ");
lodashText = spaces[1];
break;
Expand Down

0 comments on commit d126089

Please sign in to comment.