bytenode-webpack-plugin icon indicating copy to clipboard operation
bytenode-webpack-plugin copied to clipboard

Support for `contextIsolation: true, nodeIntegration: false, sandbox: true`

Open PascalPixel opened this issue 1 year ago • 3 comments

  • The example for forge/webpack/ts turns on node integration for the renderer to make bytenode-webpack-plugin work
  • The readme states there might be other ways to make bytenode-webpack-plugin work
  • Can you provide a minimal example of such a solution that does not enable node integration?
  • Even pointers would be helpful, say I wanted; { contextIsolation: true, nodeIntegration: false, sandbox: true } (the electron default), what other methods could make bytenode work for preload and renderer?

PascalPixel avatar Aug 01 '23 12:08 PascalPixel

Looking forward to this extremely important example

raphael10-collab avatar Aug 31 '23 16:08 raphael10-collab

@PascalPixel we haven't found a way yet, that's why there is no example. If you happen to know how we could go about making this possible, let us know and we'll work on implementing it.

herberttn avatar Jan 18 '24 14:01 herberttn

To investigate: https://github.com/herberttn/bytenode-webpack-plugin/issues/30#issuecomment-1798446991

herberttn avatar Jan 18 '24 15:01 herberttn