Lose require jsc in renderer entry file #21
Labels
electron-builder
needs clarification
needs reproduction
The author did not provide a reproduction repository
potential bug
Hi, thanks for your work. I am using this plugin with electron-builder.
It works fine in electron-main, but not renderer.
Specifically, this plugin can output both main and renderer jsc files and the entry file.
The entry file for main is ok, it contains the code
require("./main.compiled.jsc")
.But the renderer entry file does not contain the require code, but any other file, such as the css file import in js.
WHY?
In order to run, i add following code in index.html to load renderer's jsc file and it works fine:
the browser code:
The renderer webpack config is similar to main's not special:
The text was updated successfully, but these errors were encountered: