Skip to content

feat(compiler): v5 add ?stencil to all asset imports#6785

Merged
johnjenkins merged 1 commit into
v5from
stencil-asset-specifier
Jul 19, 2026
Merged

feat(compiler): v5 add ?stencil to all asset imports#6785
johnjenkins merged 1 commit into
v5from
stencil-asset-specifier

Conversation

@johnjenkins

@johnjenkins johnjenkins commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

What is the current behavior?

GitHub Issue Number: N/A

Stencil has custom handling for vert, frag, txt, svg and css import extensions. To this end, Stencil adds a global .d.ts file and whilst this works, in a mono-repo (which is common for design-systems), this global definition can 'stomp' over other import typing.

What is the new behavior?

vert, frag, txt, svg and css direct import extensions now require ?stencil

e.g.

import myStyle from 'my-thing.css?stencil';
import mySvg from 'my-svg.svg?stencil';

Documentation

Does this introduce a breaking change?

  • Yes
  • No

run stencil migrate to auto migrate any relevant import statements

Testing

Other information

@johnjenkins
johnjenkins requested a review from a team as a code owner July 19, 2026 01:24
@johnjenkins
johnjenkins merged commit 69755b3 into v5 Jul 19, 2026
28 of 29 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