Re:Cerebro App – Open-source productivity booster with a brain
by rounce on Sunday February 26, 2017 @07:11PM
(#13740857)
Not even. `export default new class ...` would be 'equivalent' to an IIFE; using CommonJS module caching to produce singleton behaviour. This should just export a function. That's it.
> export default class AppUpdater { ......
why is this a class ? just so it can auto-exececute without being called ?
i would prefer an 'export default function init(){ // init code'