[!] TypeError: str.slice is not a function
TypeError: str.slice is not a function
at startsWith (/home/caub/dev/color-wheel/node_modules/rollup-plugin-commonjs/src/index.js:37:13)
Thanks for the PR and sorry for little communication. I decided to give preference to #329 as it also contained a test but reformatted the code so that it works more like your PR as I liked the code better.
It's needed by "chunks" mode https://github.com/rollup/rollup/pull/2084#issuecomment-393440509 chunks options allow objects as input:
it solved this issue: