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

feat(build): emit license #18546

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

feat(build): emit license #18546

wants to merge 6 commits into from

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Nov 1, 2024

Description

closes #17892
supersedes and closes #18104

Very crude implementation for license support. It supports outputting to .vite/license.md by default, however you can set a path with .json to output in .json format for further processing.

It doesn't contain all dependency package.json information or all features of https://github.com/mjeanroy/rollup-plugin-license. I don't think we should implement all of it, but we could expose more information to be sufficiently flexible for extending or customizing the output. It also does not contain licenses for the project itself.

Open to discussion of how the API and output should look like. You can check out the snapshot tests for example of the current output.

@bluwy bluwy added p2-nice-to-have Not breaking anything but nice to have (priority) feat: build labels Nov 4, 2024
@bluwy bluwy marked this pull request as ready for review November 4, 2024 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: build p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract license info outside of the JavaScript bundle
1 participant