mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Install electron shims in benchmarks
This is needed because some packages may still rely on the ability to pass null/undefined to path.dirname and friends Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
@@ -13,6 +13,7 @@ export default async function () {
|
||||
const ApplicationDelegate = require('../src/application-delegate')
|
||||
const AtomEnvironment = require('../src/atom-environment')
|
||||
const TextEditor = require('../src/text-editor')
|
||||
require('../src/electron-shims')
|
||||
|
||||
const exportsPath = path.join(resourcePath, 'exports')
|
||||
require('module').globalPaths.push(exportsPath) // Add 'exports' to module search path.
|
||||
|
||||
Reference in New Issue
Block a user