Skip to content

bug: dist/esm/polyfills is empty  #4661

@AnnaHoege

Description

@AnnaHoege

Prerequisites

Stencil Version

v4.0.4

Current Behavior

When running npm run build, the resulting dist/esm/polyfills folder is empty every other time the command is run. This causes issues as the loader exports the index file of the polyfills folder.

Expected Behavior

The polyfills folder should contain at least an index file on every build.

System Info

System: node 18.17.0
      Platform: windows (10.0.19045)
      CPU Model: Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz (8 cpus)
      Compiler: C:\Users\AHOEGE\Projects\stencil-bug-reproduction\bug-reproduction\node_modules\@stencil\core\compiler\stencil.js
      Build: 1691405536
      Stencil: 4.0.4
      TypeScript: 5.0.4
      Rollup: 2.42.3
      Parse5: 7.1.2
      Sizzle: 2.42.3
      Terser: 5.19.2

Steps to Reproduce

  1. Create a new project via npm init stencil
  2. Run npm i
  3. Run npm build
  4. Run npm build

Code Reproduction URL

https://github.com/AnnaHoege/stencil-bug-reproduction

Additional Information

No response

Metadata

Metadata

Labels

Bug: ValidatedThis PR or Issue is verified to be a bug within Stencil

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions