ionic-team / stencil-component-starter

Minimal starter project for building shareable web components with Stencil
https://github.com/ionic-team/stencil
MIT License
278 stars 128 forks source link

Incorrect es2015, es2017 fields in package.json #123

Closed vaibhavshn closed 11 months ago

vaibhavshn commented 1 year ago

The es2015 and es2017 fields in package.json point to dist/esm/index.mjs which is non-existent in the latest project scaffolded with npm init stencil.

The only esm file seems to be dist/esm/index.js.

Will create a PR for the same in case this is a bug.

vaibhavshn commented 1 year ago

I have the same package.json as this one: https://github.com/ionic-team/stencil-component-starter/blob/56716b350c27f750dc10acba2b103a44abb04fcd/package.json.

vaibhavshn commented 1 year ago

I can't find what these fields are for.

Checked:

rwaskiewicz commented 1 year ago

Thanks @vaibhavshn!

This does appear to be a bug - both of those fields should end in the .js extension instead of .mjs - happy to aceept a PR is you're still interested!