javascript pathing via SDC

Created on 9 May 2025, about 1 month ago

Problem/Motivation

This module introduces a standard Drupal single directory component called player at components/player. The javascript has been written into components/player/player.js and seems to work well, however this is only possible when player.js is specifically listed in player.component.yml as in the example below. This should not be necessary, however removing the line of code from player.component.yml breaks the custom javascript functionality because the file isn't loaded like a Drupal single directory component javascript file should.

libraryOverrides:
  js:
    ./player.js: {}

Steps to reproduce

Removing this line of code and clearing the cache breaks the custom javascript functionality of the component.

Proposed resolution

The player.js component should work without having to be listed under libraryOverrides.

πŸ› Bug report
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States amstercad

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

Comments & Activities

Production build 0.71.5 2024