Slack

Using ES2015 with Electron — introducing electron-compile

Apr 25, 2016
Using ES2015 with Electron — introducing electron-compile
SummaryAI, from the source post

Introduced `electron-compile`, a library that enables Just-In-Time compilation of ES2015, TypeScript, CoffeeScript, LESS, and Jade/Pug within Electron applications. This eliminates the need for manual build pipelines, simplifying development and enabling faster prototyping. It works by intercepting JavaScript via Node.js's require mechanism and Chromium's file protocol. Caching of compiled results is implemented using SHA1s of input contents, with a `compiler-info.json.gz` file storing compiler versions and options. For production, a read-only mode compiles all files and copies the cache, reducing I/O work.

More from the Electron App Sandboxing trail