Method: Esbuilder.build_entry_point
- Defined in:
- lib/esbuilder.rb
.build_entry_point(entry_point) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/esbuilder.rb', line 13 def build_entry_point(entry_point) outdir = Engine.config.output_path = (entry_point) result = Esbuild.build(**) result..outputs.each_key.map { |key| "/#{Rails.root.join(key).relative_path_from(outdir)}" } end |