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
v4.33.0
Current Behavior
I use the following import and usage:
global.js (defined in stencil config via prop: globalScript: 'src/global/global.js'
)
import { Build } from '@stencil/core';
console.log(Build) // returns undefined
The above issue has been introduced since v4.33.0, it works perfectly fine until v4.32.0
Example output of Build object injected that works in v4.32.0:
{ "isDev": true, "isBrowser": true, "isServer": false, "isTesting": false }
[59:21.5] @stencil/core
[59:21.6] v4.32.0 🤖
[59:24.4] build, db-components, dev mode, started ...
[59:24.4] transpile started ...
[59:26.4] transpile finished in 1.96 s
[59:26.4] generate lazy + source maps started ...
[59:34.6] generate lazy + source maps finished in 8.18 s
[59:34.6] copy started ...
[59:35.8] copy finished (4242 files) in 1.26 s
Expected Behavior
Build object should be injected correctly as shared in the above example
Please help with this, thanks in advance!
System Info
System: node 20.19.2
Platform: darwin (24.5.0)
CPU Model: Apple M4 Pro (12 cpus)
Compiler: /Users/<redacted_username>/repos/dbox-ui-components/node_modules/@stencil/core/compiler/stencil.js
Build: 1748464182
Stencil: 4.32.0 🤖
TypeScript: 5.5.4
Rollup: 4.34.9
Parse5: 7.2.1
jQuery: 4.0.0-pre
Terser: 5.37.0
Steps to Reproduce
global.js (defined in stencil config via prop: globalScript: 'src/global/global.js'
)
import { Build } from '@stencil/core';
console.log(Build) // returns undefined
Code Reproduction URL
Additional Information
No response