question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

electron-compile support

See original GitHub issue
  • Version: 7.11.3
  • Target: all

I’ve just integrated my app with electron-prebuilt-compile which compiles various assets and JavaScript using babel. According to https://github.com/electron/electron-compile#how-can-i-precompile-my-code-for-release-time it works with electron-packager. I tried just running the build, but nothing gets build with the default setup of electron-builder. Is there a way to get this integration working?

You can see the code here: https://github.com/ipfs/station/tree/better-build

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:38 (33 by maintainers)

github_iconTop GitHub Comments

4reactions
develarcommented, Mar 21, 2017

Supported in the 16.0.0 — if electron-compile in your dependencies, all files will be transpiled on the fly. Currently, only supported if asar enabled (feel free to file issue to support if asar is disabled).

  • warn will be printed if electron-compiler in the production dependencies — it should be in the dev.
  • shim is not produced — because should be not produced 😃
  • compilation on the fly — no temp or intermediate files, directly to asar archive.
  • any compiler (including babel) can be added into the pipeline — feel free to file issue to support babel directly.
2reactions
aeneasrcommented, Feb 20, 2017

I see, thanks for pointing me at it. Thank you all for your work on this. At some point, it would probably be cool to have an overview of what to use when for what and how. For a newcomer to the electron ecosystem I have to say it’s a steep learning curve 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

DEPRECATED: electron-compile - GitHub
DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications - GitHub - electron-userland/electron-compile: DEPRECATED: Electron ...
Read more >
electron-builder
Docker images to build Electron app for Linux or Windows on any platform. Proton Native support. Downloads all required tools files on demand...
Read more >
electron-compile - npm
Electron supporting package to compile JS and CSS in Electron applications. Latest version: 6.4.4, last published: 4 years ago.
Read more >
Using ES2015 with Electron — introducing electron-compile
We call it electron-compile, and this post will describe how to use it and explain ... Want to help Slack solve tough problems...
Read more >
Help - > Electron-compile (Example) | Treehouse Community
I need help to start a project with Electron and React, usgin electron-compile. My react components dont show on electron.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found