Class: Esbuild::BuildResult::Metafile::Output

Inherits:
Struct
  • Object
show all
Defined in:
lib/esbuild/build_result.rb

Defined Under Namespace

Classes: Input

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Output

Returns a new instance of Output.



36
37
38
39
# File 'lib/esbuild/build_result.rb', line 36

def initialize(hash)
  inputs = hash["inputs"].transform_values! { |v| Input.new(v) }
  super(hash["imports"], hash["exports"], hash["entryPoint"], inputs)
end

Instance Attribute Details

#entry_pointObject

Returns the value of attribute entry_point

Returns:

  • (Object)

    the current value of entry_point



29
30
31
# File 'lib/esbuild/build_result.rb', line 29

def entry_point
  @entry_point
end

#exportsObject

Returns the value of attribute exports

Returns:

  • (Object)

    the current value of exports



29
30
31
# File 'lib/esbuild/build_result.rb', line 29

def exports
  @exports
end

#importsObject

Returns the value of attribute imports

Returns:

  • (Object)

    the current value of imports



29
30
31
# File 'lib/esbuild/build_result.rb', line 29

def imports
  @imports
end

#inputsObject

Returns the value of attribute inputs

Returns:

  • (Object)

    the current value of inputs



29
30
31
# File 'lib/esbuild/build_result.rb', line 29

def inputs
  @inputs
end