Class: Lilac::CLI::CompiledRuntimeResolver
- Inherits:
-
RuntimeResolver
- Object
- RuntimeResolver
- Lilac::CLI::CompiledRuntimeResolver
- Defined in:
- lib/lilac/cli/build/compiled_runtime_resolver.rb
Overview
Locates the target: :compiled runtime that gets vendored into
dist/vendor/lilac-compiled/:
* `lilac.wasm` — the compiled-variant wasm bundle (vendored
name; the monorepo/gem source is
`lilac-compiled.wasm`)
* `mruby-wasm-js/` — the JS↔mruby bridge (resolved by the shared
base — same artifact as the :full target)
The boot module is rendered inline by the builder
(render_compiled_boot_module); we don't ship the npm package's
index.js. Only the wasm-specific discovery differs from :full,
so this class supplies just those hooks. See RuntimeResolver.
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
-
#initialize(lilac_compiled_path: nil, **opts) ⇒ CompiledRuntimeResolver
constructor
A new instance of CompiledRuntimeResolver.
Methods inherited from RuntimeResolver
#bridge_path, #resolve_bridge!, #resolve_wasm!, #wasm_path
Constructor Details
#initialize(lilac_compiled_path: nil, **opts) ⇒ CompiledRuntimeResolver
Returns a new instance of CompiledRuntimeResolver.
24 25 26 |
# File 'lib/lilac/cli/build/compiled_runtime_resolver.rb', line 24 def initialize(lilac_compiled_path: nil, **opts) super(lilac_wasm_path: lilac_compiled_path, **opts) end |