You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for the dist output targets it works as expected but for output targets which uses dist-custom-elements it's not working as expected even after adding includeGlobalScripts: true to the stencil.config.ts.
I tested it by importing my stencil standalone components into my application.
Expected Behavior
I expect, after adding one Stencil Angular Standalone component to my Angular App, the global script runs initially.
System Info
Steps to Reproduce
Create a Global Script
Define it in the stencil.config.ts
Add includeGlobalScripts to the "dist-custom-elements"
Generate Angular Standalone Output Targets
Import these components into your Angular App
Code Reproduction URL
..
Additional Information
No response
The text was updated successfully, but these errors were encountered:
I'm trying to archive the old behaviour back, which adds the .hydrated class to the HTML element.
We have removed this because we didn't see any purpose for this anymore as there is no indication that users still use Stencil as static site generator. Can you elaborate on your use case?
for the dist output targets it works as expected but for output targets which uses dist-custom-elements
It looks like global scripts are only injected when using dist as output target. You can workaround this by injecting your global script before setting the script to the dist-custom-element asset. In general I would not recommend using Stencils global script primitive.
Prerequisites
Stencil Version
4.28.3
Current Behavior
Hello,
I'm trying to archive the old behaviour back, which adds the
.hydrated
class to the HTML element.I added a global script to my stencil.config.ts which has following code:
for the
dist
output targets it works as expected but for output targets which usesdist-custom-elements
it's not working as expected even after addingincludeGlobalScripts: true
to the stencil.config.ts.I tested it by importing my stencil standalone components into my application.
Expected Behavior
I expect, after adding one Stencil Angular Standalone component to my Angular App, the global script runs initially.
System Info
Steps to Reproduce
Code Reproduction URL
..
Additional Information
No response
The text was updated successfully, but these errors were encountered: