Embark compiler module that abstracts the compiler interface and exposes a plugin API for contract extensions. Current stable version is 6.0.0, part of the Embark framework (release cadence: major versions every 6-12 months, nightly releases). Key differentiators: integrates with Solidity (solc), supports plugin-based compiler registration, and provides a command-driven compilation flow. Compared to alternatives like Truffle Compile, it is tightly coupled with the Embark ecosystem and uses a unique event-based request pattern.
npm install embark-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a Solidity contract using Embark's event-based request system, showing the minimal setup with a File object.
Upgrade Node to >=10.17.0 and npm to >=6.11.3 or yarn >=1.19.1.
Use the event-based request pattern instead (compiler:contracts:compile).
Always set type: 'custom' or appropriate value when creating File instances.
Pass { isCoverage: false } if not using coverage.Run 'npm install @embark/core' or ensure Embark framework is properly installed.
Set path to the contract's original filename, e.g., 'SimpleStorage.sol'.
Wrap File in an array: [new File({...})].