Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on build targets #57

Open
dhowe opened this issue Oct 25, 2023 · 0 comments
Open

Question on build targets #57

dhowe opened this issue Oct 25, 2023 · 0 comments

Comments

@dhowe
Copy link

dhowe commented Oct 25, 2023

Greetings and thanks for the template. This is just a question re: the target build formats. I notice that there are 4 targets in the rollup-config: es, es5, iife, and cjs. And in package.json I see the three outputs: "main": "dist/index.cjs.js", "browser": "dist/index.iife.js", "exports": "./dist/index.js"

I'm guessing cjs for npm/node and iife for the browser. Where do you imagine that the two es formats would be used/published ?

@dhowe dhowe changed the title Expected build targets Question on build targets Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant