How do we use electron-prebuilt-compile in tandem with create-react-app? I assume we do not build our project (nor use the build folder with react-scripts) since electron-prebuilt-compile will handle any ES6, React, LESS, etc. transpilation.
A couple notes about my current project:
I have electron-prebuilt-compile in my dependencies.
My app works but in development but in production (compiling using electron-builder --dir) results in this error:
This leads me to believe that electron-builder is not using electron-prebuilt-compile when compiling the app, hence the error on the importkeyword. Issues #73 & #74 are related to this.
I feel as i am missing maybe some extra configuration to remove this error.
Hi everyone,
How do we use electron-prebuilt-compile in tandem with create-react-app? I assume we do not build our project (nor use the
build
folder withreact-scripts
) since electron-prebuilt-compile will handle any ES6, React, LESS, etc. transpilation.A couple notes about my current project: I have
electron-prebuilt-compile
in my dependencies.My app works but in development but in production (compiling using electron-builder --dir) results in this error:![image](https://user-images.githubusercontent.com/10659877/54631852-08572c00-4a3a-11e9-9344-fa128132f636.png)
This leads me to believe that electron-builder is not using electron-prebuilt-compile when compiling the app, hence the error on the
import
keyword. Issues #73 & #74 are related to this.I feel as i am missing maybe some extra configuration to remove this error.
The following is my package.json: