fiddle icon indicating copy to clipboard operation
fiddle copied to clipboard

Add option to bundle renderer code

Open timfish opened this issue 4 years ago • 2 comments
trafficstars

It's recommended that Electron renderers have nodeIntegration: false and contextIsolation: true and this means no access to require. This in turn means that it's currently not possible to create a fiddle that uses dependencies in the renderer which is quite a limitation.

timfish avatar Jun 15 '21 16:06 timfish

@timfish can you elaborate on this a bit more? would it not be possible for you to use contextBridge to pass over what you need?

codebytere avatar Jun 18 '21 07:06 codebytere

I help maintain @sentry/electronand when developers open GitHub issues it would be great to say "modify this fiddle to show us what's not working". There are quite a few ways to use and configure Electron and fiddle is a great way to offer up some starting points for bug reports.

However, this isn't possible with any library that requires running in the isolated renderer context as there's no way to have dependencies in the isolated renderer.

timfish avatar Jun 18 '21 07:06 timfish