#how to use npm package in renderer process with nodeIntegration disabled

16 messages · Page 1 of 1 (latest)

keen pier
#

I've tried a lot of way, but doesn't work, anyone know how to do it?

jovial epoch
#

From preload

#

Or with webpack

keen pier
jovial epoch
#

One key security feature in Chromium is that processes can be executed within a sandbox. The sandbox limits the harm that malicious code can cause by limiting access to most system resources — sandboxed processes can only freely use CPU cycles and memory. In order to perform operations requiring additional privilege, sandboxed processes use dedi...

keen pier
jovial epoch
#

You cant

#

Use it in main process

keen pier
jovial epoch
#

yep

#

or use it in renderer directly with script tag

keen pier
keen pier
jovial epoch
#

you can use js file for browser

#

from node_modules folder