diff --git a/lib/browser/init.js b/lib/browser/init.js index 6326b8e80e8b..68a555ad5858 100644 --- a/lib/browser/init.js +++ b/lib/browser/init.js @@ -119,7 +119,7 @@ for (i = 0, len = searchPaths.length; i < len; i++) { packagePath = searchPaths[i] try { packagePath = path.join(process.resourcesPath, packagePath) - packageJson = JSON.parse(fs.readFileSync(path.join(packagePath, 'package.json'))) + packageJson = require(path.join(packagePath, 'package.json')) break } catch (error) { continue