Fixes 2094 by enabling addon/index.js
Merge pull request #2146 from ef4/fix-2094

Allow `addon/index.js`