lib/sewing_kit/webpack/manifest/base.rb in sewing_kit-0.28.0 vs lib/sewing_kit/webpack/manifest/base.rb in sewing_kit-0.29.1
- old
+ new
@@ -9,10 +9,15 @@
@metadata = nil
end
# :nodoc:
def asset_dependencies(entrypoint_name)
- metadata['entrypoints'][entrypoint_name]
+ current_metadata = metadata
+ if current_metadata.key?('development')
+ current_metadata['development']['hangTight']
+ else
+ current_metadata['entrypoints'][entrypoint_name]
+ end
end
def clear_cache!
@metadata = nil
end