Skip to content

Is it possible to target electron-renderer?  #1738

@michaelchiche

Description

@michaelchiche

❔ Question

Hi, I am new to parcel, and I was wondering if there was a way to build with parcel and target for electron-renderer? I saw that there is a target electron, but it removed all the node_modules and then my app does not work anymore?

🔦 Context

I need build for electron-renderer/electron to be able to do:

import { ipcRenderer } from 'electron';

I need access to this in my react app. Parcel worked perfectly to target the browser, but I can't completely switch to parcel until I can build both electron and web apps with it.

I saw that #1690, which looks like it might be the solution to my problem?
because now, when I build with target electron, I get react not found.

Thanks for your help

💻 Code Sample

🌍 Your Environment

Software Version(s)
Parcel 1.9.7
Node
npm/Yarn
Operating System

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions