rollup / rollup-plugin-commonjs

This module has moved and is now available at @rollup/plugin-commonjs / https://github.com/rollup/plugins/blob/master/packages/commonjs
MIT License
501 stars 126 forks source link

fix: prevent error for extractors.ArrayPattern with MemberExpression #375

Closed zo closed 5 years ago

zo commented 5 years ago

This fix prevent extractNames to throw TypeError: extractors[element.type] is not a function when it encounter an array destructuring with MemberExpression like here https://github.com/babel/babel/blob/2817844e895b8999b71ec89ba008180c07b2f66d/packages/babel-parser/src/plugins/flow.js#L192