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.27.1 onwards
Current Behavior
We have updated the stencil/core to the latest 4.29.1 and could see the package.json inside the build output (loader) is missing. The latest version that has package.json is 4.27.0 .
We had to downgrade the package to 4.27.0 to have the expected build output.
Could you please take a look at this and please update the expected and right behavior for this build output? There is regression in our other components when the latest version of stencil/core is used without the package.json in the build output is used.
I have created a sandbox env where the previous version 4.27.0 is used and could see the package.json in the loader after building.
https://github.com/katteri-hpe/sandbox-table - Sandbox env V4.27.0
I have created another branch with the latest version 4.29.1, where you could see there is no package.json in the loader.
https://github.com/katteri-hpe/sandbox-table/tree/newbranch-v4.29.1 - V4.29.1
Expected Behavior
The expected behaviour is the build output having package.json in it.
https://github.com/katteri-hpe/sandbox-table - expected
System Info
Steps to Reproduce
The issue is reproduced in the repo and the branch provided.
Use V4.27.0 - to get the package.json in the build output
Use V27.1.0 (or any higher version) - for the build output without package.json in it.
Code Reproduction URL
https://github.com/katteri-hpe/sandbox-table/tree/newbranch-v4.29.1
Additional Information
No response