Skip to content

Document 'target' #630

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

Closed
jakearchibald opened this issue Jul 14, 2020 · 4 comments · Fixed by #652
Closed

Document 'target' #630

jakearchibald opened this issue Jul 14, 2020 · 4 comments · Fixed by #652

Comments

@jakearchibald
Copy link

'target' is mentioned in passing on https://v2.parceljs.org/getting-started/configuration/#targets, but it doesn't detail what kind of values it can have, or how it works.

@mischnic
Copy link
Member

Looks like a link to https://v2.parceljs.org/configuration/package-json/#targets is missing

@jakearchibald
Copy link
Author

Also, I don't think it's documented that <script type="module" src=…> will imply an esm target. I mean, it makes sense, but I don't think it's easy to discover.

@mischnic
Copy link
Member

Yeah, "Language/HTML" is on the Todo list, which will cover: module/nomodule, inline scripts, inline styles, PostHTML, htmlnano

@mischnic
Copy link
Member

Also, I don't think it's documented that <script type="module" src=…> will imply an esm target. I mean, it makes sense, but I don't think it's easy to discover.

https://v2.parceljs.org/languages/html/#dependencies and http://localhost:8080/getting-started/webapp/#differential-serving

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

Successfully merging a pull request may close this issue.

2 participants