Closed
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
4.33.1
Current Behavior
The code described here https://stenciljs.com/docs/styling#style-modes does not work in v4.33.1
in v4.32.0
everything is fine.
import { setMode } from '@stencil/core';
const defaultMode = 'md'; // Default to Material Design
setMode((el) => el.getAttribute('mode') || defaultMode);
Expected Behavior
The code should work like in v4.32.0
.
System Info
System: node 22.16.0
Platform: windows (10.0.2***)
CPU Model: AMD Ryzen 7 PRO ***
Compiler: C:\...\node_modules\@stencil\core\compiler\stencil.js
Build: 174898***
Stencil: 4.33.1
TypeScript: 5.5.4
Rollup: 4.34.9
Parse5: 7.2.1
jQuery: 4.0.0-pre
Terser: 5.37.0
Steps to Reproduce
Just use the code snippet from above.
Code Reproduction URL
Additional Information
Reprodution URL should not be mandatory.