The plugin fails bundling a module which exports a variable from deconstruction with literal keys.
[!] (commonjs plugin) TypeError: extractors[prop.key.type] is not a function
Example
module.js
const obj = {
index: 0,
1: 1,
2: 2,
3: 3,
};
let {
index: a,
1: b,
2: c,
3: d
} = obj;
module.exports = b;
index.js
import b from './module.js';
It seems a rollup-pluginutils failure (here the related issue and PR). Also, the extractNames helper in rollup-plugin-commonjs could have the same issue.
The plugin fails bundling a module which exports a variable from deconstruction with literal keys.
Example
module.js
index.js
It seems a
rollup-pluginutilsfailure (here the related issue and PR). Also, theextractNameshelper inrollup-plugin-commonjscould have the same issue.