Provides compiler implementations (Babel, TypeScript, CoffeeScript, GraphQL, LESS, Stylus, Jade, CSON) for electron-compile in Electron apps. Current stable version is 5.9.0, but the package is in maintenance mode and tightly coupled to the deprecated electron-compile ecosystem. Key differentiator: designed to be a devDependency to avoid bloating production builds. Not actively developed; users are strongly advised to migrate to modern Electron tooling (e.g., Webpack, Vite).
npm install electron-compilersNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantiate the BabelCompiler and use it with electron-compile's CompilerHost to compile a file.
Migrate to a modern build tool like Webpack, Rollup, or Vite.
Update presets/plugins to Babel 6 compatible versions (e.g., 'babel-preset-es2015' -> '@babel/preset-env' with additional packages).
If using TypeScript >=3, consider using tsc directly instead of this compiler.
Use pug directly instead of the Jade compiler; or pin an old jade version.
Process .graphql files with a current version of graphql-tag instead of relying on this compiler.
Install the required Babel version: npm install babel-core@6.26.3 (for v5) or check README.
Install typescript: npm install typescript@2.9.2 (or version compatible with your project).
Provide a valid babelConfig object with presets/plugins (e.g., { presets: ['env'] }).If you need Jade support, install jade (npm install jade). Better: use pug instead.
No dependency data recorded yet.