Store and calculate dependencies in `JavaScriptComponent`

Created on 9 April 2025, 12 days ago

Overview

Code components need to be able to express dependencies in order to support importing other code components. See the parent issue, 🌱 [Plan] First-party code component imports Active .

Proposed resolution

  1. Introduce a js_dependencies property on the JavaScriptComponent config entity to store an array of JS component machine names.
    1. Reflect this in the auto-save.
    2. Expose it via the HTTP API endpoint.
  2. Calculate and save dependencies of the config entity based on the contents of js_dependencies where other JavaScriptComponent config entities are referenced by their machine name.
    1. Reflect this in auto-save.

User interface changes

None.

Feature request
Status

Active

Version

0.0

Component

Page builder

Created by

🇳🇱Netherlands balintbrews Amsterdam, NL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024