Skip to content

Commit ac5665c

Browse files
committedApr 24, 2022
add vite to license
1 parent 205d1f0 commit ac5665c

File tree

2 files changed

+29
-24
lines changed

2 files changed

+29
-24
lines changed
 

‎LICENSE

+27
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,30 @@ The above copyright notice and this permission notice shall be included in all c
3232

3333
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3434
"""
35+
36+
37+
"""
38+
This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository:
39+
40+
MIT License
41+
42+
Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
43+
44+
Permission is hereby granted, free of charge, to any person obtaining a copy
45+
of this software and associated documentation files (the "Software"), to deal
46+
in the Software without restriction, including without limitation the rights
47+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
48+
copies of the Software, and to permit persons to whom the Software is
49+
furnished to do so, subject to the following conditions:
50+
51+
The above copyright notice and this permission notice shall be included in all
52+
copies or substantial portions of the Software.
53+
54+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
59+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
60+
SOFTWARE.
61+
"""

‎packages/astro/src/core/render/dev/html.ts

+2-24
Original file line numberDiff line numberDiff line change
@@ -66,32 +66,10 @@ export function collectResources(html: string): Resource[] {
6666
// Vite’s `transformIndexHtml()` API for ease-of-use and consistency. But we need
6767
// to borrow a few private methods in Vite to make that available here.
6868
// https://github.com/vitejs/vite/blob/main/packages/vite/src/node/plugins/html.ts
69+
//
70+
// See LICENSE for more info.
6971
// -------------------------------------------------------------------------------
7072

71-
// Vite is released under the MIT license:
72-
73-
// MIT License
74-
75-
// Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
76-
77-
// Permission is hereby granted, free of charge, to any person obtaining a copy
78-
// of this software and associated documentation files (the "Software"), to deal
79-
// in the Software without restriction, including without limitation the rights
80-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
81-
// copies of the Software, and to permit persons to whom the Software is
82-
// furnished to do so, subject to the following conditions:
83-
84-
// The above copyright notice and this permission notice shall be included in all
85-
// copies or substantial portions of the Software.
86-
87-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
88-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
89-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
90-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
91-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
92-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
93-
// SOFTWARE.
94-
9573
const unaryTags = new Set(['link', 'meta', 'base']);
9674

9775
function serializeTag({ tag, attrs, children }: vite.HtmlTagDescriptor, indent = ''): string {

0 commit comments

Comments
 (0)
Please sign in to comment.