Add node support in threads (#21139)

This enables the possibility of multithreading in Atom as stated in [Electron documentation](https://www.electronjs.org/docs/tutorial/multithreading). It allows using Node features in WebWorkers.
This commit is contained in:
Amin Yahyaabadi 2021-01-25 10:05:33 -06:00 committed by GitHub
parent 4e1f76530c
commit d69078884b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,10 @@ module.exports = class AtomWindow extends EventEmitter {
// (Ref: https://github.com/atom/atom/pull/12696#issuecomment-290496960)
disableBlinkFeatures: 'Auxclick',
nodeIntegration: true,
webviewTag: true
webviewTag: true,
// node support in threads
nodeIntegrationInWorker: true
},
simpleFullscreen: this.getSimpleFullscreen()
};