Skip to content

Render plugin renderFile and renderTemplate should inform template dependency graph (for refresh and incremental builds) #3698

@druskus20

Description

@druskus20

Operating system

Linux - Ubuntu

Eleventy

3.0.0 and v3.0.1-alpha.5

Describe the bug

I have a main-button web component with the webc:scoped attribute.

I use this component from two places. 1) index.html, 2) base.liquid.

The HTML one is rendered with:

htmlTemplateEngine: "webc",

The Liquid one is rendered with:

{% renderTemplate "webc" %}
<main-button>Liquid (base.liquid)</main-button>
{% endrenderTemplate %}

The stylesheet is loaded with:

    <link rel="stylesheet" href={% getBundleFileUrl 'css' %}

Issue

  • A style change in the WebC bundled style is correctly refreshed for the one used in the liquid template.
  • The component used from HTML directly does not reload correctly. It is necessary to re-run eleventy --serve for it to take effect.

In the video you can see the exact behavior. Note that the class for the component used in the index.html is not updated.

two classes seem to be present in the generated CSS bundle, until a eleventy --serve is ran from scratch.

2025-03-15.21-13-01.mp4

Reproduction steps

No response

Expected behavior

Both instances of my button should have the up to date styles without re-running eleventy --serve.

Reproduction URL

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions