Skip to content

Conversation

@johnjenkins
Copy link
Contributor

@johnjenkins johnjenkins commented Feb 7, 2026

What is the current behavior?

GitHub Issue Number: N/A

What is the new behavior?

Generate an auto-loader script for dist-custom-elements that uses MutationObserver to lazily load and define custom elements as they appear in the DOM.

export const config: Config = {
  namespace: 'AutoLoader',
  outputTargets: [
    {
      type: 'dist-custom-elements',
      autoLoader: true,
      /** // or With options
      * autoLoader: {
      *   fileName: 'my-loader.js',
      *   autoStart: false
      * }
     */
    },
  ],
};

Documentation

TODO

Does this introduce a breaking change?

  • Yes
  • No

Testing

Spec and wdio

Other information

@johnjenkins johnjenkins requested a review from a team as a code owner February 7, 2026 17:36
@johnjenkins johnjenkins merged commit e130b7a into main Feb 7, 2026
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant