bug: dist-custom-elements with customElementsExportBehavior: "single-export-module" does not execute globalScript #5680
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
4.16.0
Current Behavior
When configuring stencil using the following configuration, the code in the file set to
globalScript
is not executed.The
outputTargets
dist-custom-elements
has setincludeGlobalScripts: true
Expected Behavior
when
globalScript
is properly set theoutputTargets
dist-custom-elements
has setincludeGlobalScripts: true
the code specified inglobalScript
is executed (as documented here: TheoutputTargets
dist-custom-elements
has setincludeGlobalScripts: true
)System Info
Steps to Reproduce
The issue can be replicated with the code at this git repo: https://github.com/0m4r/stencil-single-export-module-global-script-bug
Once cloned:
npm install
npm run build
npm run build
npm run dev
Code Reproduction URL
https://github.com/0m4r/stencil-single-export-module-global-script-bug
Additional Information
No response
The text was updated successfully, but these errors were encountered: