Module: Esbuild
- Defined in:
- lib/esbuild.rb,
lib/esbuild/flags.rb,
lib/esbuild/packet.rb,
lib/esbuild/service.rb,
lib/esbuild/version.rb,
lib/esbuild/build_state.rb,
lib/esbuild/build_result.rb,
lib/esbuild/serve_result.rb,
lib/esbuild/stdio_protocol.rb,
lib/esbuild/binary_installer.rb,
lib/esbuild/transform_result.rb
Defined Under Namespace
Modules: Flags, StdioProtocol
Classes: BinaryInstaller, BuildFailureError, BuildResult, BuildState, Packet, ServeResult, Service, TransformResult
Constant Summary
collapse
- VERSION =
"0.2.1"
- ESBUILD_VERSION =
"0.12.8"
Class Method Summary
collapse
Class Method Details
.build(options) ⇒ Object
10
11
12
|
# File 'lib/esbuild.rb', line 10
def build(options)
service.build_or_serve(options)
end
|
.serve(serve_options, build_options) ⇒ Object
14
15
16
|
# File 'lib/esbuild.rb', line 14
def serve(serve_options, build_options)
service.build_or_serve(build_options, serve_options)
end
|
18
19
20
|
# File 'lib/esbuild.rb', line 18
def transform(input, options = {})
service.transform(input, options)
end
|