INNER CODE UNIT · JavaScript

getIDMapPath

nklayman/vue-cli-plugin-electron-builder · lib/installVueDevtools/index.js:11

const getIDMapPath = () => path.resolve(getPath(), 'IDMap.json')
if (fs.existsSync(getIDMapPath())) {
  try {
    IDMap = JSON.parse(fs.readFileSync(getIDMapPath(), 'utf8'))
  } catch (err) {
    console.error(
      'electron-devtools-installer: Invalid JSON present in the IDMap file'
    )
  }
}

const install = (forceDownload = false) => {
  console.log(
    'installVueDevtools() is deprecated, and will be removed in a future release.'
  )
  console.log('Please use electron-devtools-installer instead.')
  console.log(
    'See https://github.com/nklayman/vue-cli-plugin-electron-builder/releases/tag/v2.0.0-rc.4 for details.'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…