Mac App Store build failing with `Cannot find module '../dialog'`


My packaged mas platform app is failing when I run it with an error of cannot find module '../dialog', but I’ve got no idea why when my darwin packaged app runs fine. It seems to run through my main.js, but fails never opens a window, errors and fails

Error: Cannot find module '../dialog'
    at Module._resolveFilename (module.js:543:15)
    at Function.Module._resolveFilename (/Users/david/
    at Function.Module._load (module.js:473:25)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at Object.get [as dialog] (/Users/david/
    at process.<anonymous> (/Users/david/
    at emitOne (events.js:116:13)
    at process.emit (events.js:211:7)
    at process._fatalException (bootstrap_node.js:383:26)

As you can see, the error’s coming through from electron.asar (ie, Electron itself), not my code, but again only in electron-packager's mas platform option

I’m running Electron 2.0.6, with electron-packager 12.1.12