vite 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of vite might be problematic. Click here for more details.
- package/CHANGELOG.md +10 -0
- package/LICENSE.md +95 -0
- package/client.d.ts +1 -1
- package/dist/node/chunks/{dep-e1f3e4b2.js → dep-7db2a04d.js} +14 -8
- package/dist/node/chunks/dep-7db2a04d.js.map +1 -0
- package/dist/node/chunks/{dep-7e728e80.js → dep-b2288281.js} +2 -2
- package/dist/node/chunks/{dep-7e728e80.js.map → dep-b2288281.js.map} +1 -1
- package/dist/node/chunks/{dep-7ad271e1.js → dep-cb9bf5e2.js} +2 -2
- package/dist/node/chunks/{dep-7ad271e1.js.map → dep-cb9bf5e2.js.map} +1 -1
- package/dist/node/chunks/{dep-fc2895ac.js → dep-cc49d7be.js} +233 -84
- package/dist/node/chunks/dep-cc49d7be.js.map +1 -0
- package/dist/node/chunks/{dep-fb883aba.js → dep-d25c0094.js} +2 -2
- package/dist/node/chunks/{dep-fb883aba.js.map → dep-d25c0094.js.map} +1 -1
- package/dist/node/cli.js +4 -4
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +1 -1
- package/package.json +8 -8
- package/src/node/optimizer/index.ts +0 -5
- package/src/node/plugins/css.ts +1 -1
- package/src/node/server/hmr.ts +5 -5
- package/src/node/server/openBrowser.ts +1 -1
- package/dist/node/chunks/dep-e1f3e4b2.js.map +0 -1
- package/dist/node/chunks/dep-fc2895ac.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.4.1](https://github.com/vitejs/vite/compare/v2.4.0...v2.4.1) (2021-07-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **hmr:** html registered as a PostCSS dependency, fix [#3716](https://github.com/vitejs/vite/issues/3716) ([#4127](https://github.com/vitejs/vite/issues/4127)) ([09c6c94](https://github.com/vitejs/vite/commit/09c6c94690ea3fc8b66bb6781995b3e15faedf8f))
|
|
7
|
+
* specify full filepath to importMeta.d.ts, fix [#4125](https://github.com/vitejs/vite/issues/4125) ([#4138](https://github.com/vitejs/vite/issues/4138)) ([3bc1d78](https://github.com/vitejs/vite/commit/3bc1d78843d970d367e235f6c30fd7996cf7335a))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
# [2.4.0](https://github.com/vitejs/vite/compare/v2.4.0-beta.3...v2.4.0) (2021-07-05)
|
|
2
12
|
|
|
3
13
|
|
package/LICENSE.md
CHANGED
|
@@ -139,6 +139,28 @@ License: MIT
|
|
|
139
139
|
By: Evan You
|
|
140
140
|
Repository: git+https://github.com/vuejs/vue-next.git
|
|
141
141
|
|
|
142
|
+
> The MIT License (MIT)
|
|
143
|
+
>
|
|
144
|
+
> Copyright (c) 2018-present, Yuxi (Evan) You
|
|
145
|
+
>
|
|
146
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
147
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
148
|
+
> in the Software without restriction, including without limitation the rights
|
|
149
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
150
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
151
|
+
> furnished to do so, subject to the following conditions:
|
|
152
|
+
>
|
|
153
|
+
> The above copyright notice and this permission notice shall be included in
|
|
154
|
+
> all copies or substantial portions of the Software.
|
|
155
|
+
>
|
|
156
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
157
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
158
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
159
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
160
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
161
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
162
|
+
> THE SOFTWARE.
|
|
163
|
+
|
|
142
164
|
---------------------------------------
|
|
143
165
|
|
|
144
166
|
## @vue/compiler-dom
|
|
@@ -146,6 +168,28 @@ License: MIT
|
|
|
146
168
|
By: Evan You
|
|
147
169
|
Repository: git+https://github.com/vuejs/vue-next.git
|
|
148
170
|
|
|
171
|
+
> The MIT License (MIT)
|
|
172
|
+
>
|
|
173
|
+
> Copyright (c) 2018-present, Yuxi (Evan) You
|
|
174
|
+
>
|
|
175
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
176
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
177
|
+
> in the Software without restriction, including without limitation the rights
|
|
178
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
179
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
180
|
+
> furnished to do so, subject to the following conditions:
|
|
181
|
+
>
|
|
182
|
+
> The above copyright notice and this permission notice shall be included in
|
|
183
|
+
> all copies or substantial portions of the Software.
|
|
184
|
+
>
|
|
185
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
186
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
187
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
188
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
189
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
190
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
191
|
+
> THE SOFTWARE.
|
|
192
|
+
|
|
149
193
|
---------------------------------------
|
|
150
194
|
|
|
151
195
|
## @vue/shared
|
|
@@ -153,6 +197,28 @@ License: MIT
|
|
|
153
197
|
By: Evan You
|
|
154
198
|
Repository: git+https://github.com/vuejs/vue-next.git
|
|
155
199
|
|
|
200
|
+
> The MIT License (MIT)
|
|
201
|
+
>
|
|
202
|
+
> Copyright (c) 2018-present, Yuxi (Evan) You
|
|
203
|
+
>
|
|
204
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
205
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
206
|
+
> in the Software without restriction, including without limitation the rights
|
|
207
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
208
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
209
|
+
> furnished to do so, subject to the following conditions:
|
|
210
|
+
>
|
|
211
|
+
> The above copyright notice and this permission notice shall be included in
|
|
212
|
+
> all copies or substantial portions of the Software.
|
|
213
|
+
>
|
|
214
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
215
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
216
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
217
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
218
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
219
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
220
|
+
> THE SOFTWARE.
|
|
221
|
+
|
|
156
222
|
---------------------------------------
|
|
157
223
|
|
|
158
224
|
## accepts
|
|
@@ -438,6 +504,13 @@ Repository: git://github.com/visionmedia/debug.git
|
|
|
438
504
|
|
|
439
505
|
---------------------------------------
|
|
440
506
|
|
|
507
|
+
## define-lazy-prop
|
|
508
|
+
License: MIT
|
|
509
|
+
By: Sindre Sorhus
|
|
510
|
+
Repository: sindresorhus/define-lazy-prop
|
|
511
|
+
|
|
512
|
+
---------------------------------------
|
|
513
|
+
|
|
441
514
|
## diff
|
|
442
515
|
License: BSD-3-Clause
|
|
443
516
|
Repository: git://github.com/kpdecker/jsdiff.git
|
|
@@ -1332,6 +1405,28 @@ License: MIT
|
|
|
1332
1405
|
By: Einar Otto Stangvik
|
|
1333
1406
|
Repository: websockets/ws
|
|
1334
1407
|
|
|
1408
|
+
> The MIT License (MIT)
|
|
1409
|
+
>
|
|
1410
|
+
> Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
|
|
1411
|
+
>
|
|
1412
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1413
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
1414
|
+
> in the Software without restriction, including without limitation the rights
|
|
1415
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1416
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
1417
|
+
> furnished to do so, subject to the following conditions:
|
|
1418
|
+
>
|
|
1419
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
1420
|
+
> copies or substantial portions of the Software.
|
|
1421
|
+
>
|
|
1422
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1423
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1424
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1425
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1426
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1427
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1428
|
+
> SOFTWARE.
|
|
1429
|
+
|
|
1335
1430
|
---------------------------------------
|
|
1336
1431
|
|
|
1337
1432
|
## yaml
|
package/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var build = require('./dep-
|
|
3
|
+
var build = require('./dep-cc49d7be.js');
|
|
4
4
|
|
|
5
5
|
var compilerDom_cjs$2 = {};
|
|
6
6
|
|
|
@@ -1543,6 +1543,10 @@ function parseElement(context, ancestors) {
|
|
|
1543
1543
|
const isPreBoundary = context.inPre && !wasInPre;
|
|
1544
1544
|
const isVPreBoundary = context.inVPre && !wasInVPre;
|
|
1545
1545
|
if (element.isSelfClosing || context.options.isVoidTag(element.tag)) {
|
|
1546
|
+
// #4030 self-closing <pre> tag
|
|
1547
|
+
if (context.options.isPreTag(element.tag)) {
|
|
1548
|
+
context.inPre = false;
|
|
1549
|
+
}
|
|
1546
1550
|
return element;
|
|
1547
1551
|
}
|
|
1548
1552
|
// Children.
|
|
@@ -1598,12 +1602,13 @@ function parseTag(context, type, parent) {
|
|
|
1598
1602
|
// save current state in case we need to re-parse attributes with v-pre
|
|
1599
1603
|
const cursor = getCursor(context);
|
|
1600
1604
|
const currentSource = context.source;
|
|
1601
|
-
// Attributes.
|
|
1602
|
-
let props = parseAttributes(context, type);
|
|
1603
1605
|
// check <pre> tag
|
|
1604
|
-
|
|
1606
|
+
const isPreTag = context.options.isPreTag(tag);
|
|
1607
|
+
if (isPreTag) {
|
|
1605
1608
|
context.inPre = true;
|
|
1606
1609
|
}
|
|
1610
|
+
// Attributes.
|
|
1611
|
+
let props = parseAttributes(context, type);
|
|
1607
1612
|
// check v-pre
|
|
1608
1613
|
if (type === 0 /* Start */ &&
|
|
1609
1614
|
!context.inVPre &&
|
|
@@ -2583,7 +2588,7 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
2583
2588
|
}
|
|
2584
2589
|
|
|
2585
2590
|
const PURE_ANNOTATION = `/*#__PURE__*/`;
|
|
2586
|
-
function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssr = false }) {
|
|
2591
|
+
function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssr = false, isTS = false }) {
|
|
2587
2592
|
const context = {
|
|
2588
2593
|
mode,
|
|
2589
2594
|
prefixIdentifiers,
|
|
@@ -2594,6 +2599,7 @@ function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode
|
|
|
2594
2599
|
runtimeGlobalName,
|
|
2595
2600
|
runtimeModuleName,
|
|
2596
2601
|
ssr,
|
|
2602
|
+
isTS,
|
|
2597
2603
|
source: ast.loc.source,
|
|
2598
2604
|
code: ``,
|
|
2599
2605
|
column: 1,
|
|
@@ -2749,7 +2755,7 @@ function genFunctionPreamble(ast, context) {
|
|
|
2749
2755
|
newline();
|
|
2750
2756
|
push(`return `);
|
|
2751
2757
|
}
|
|
2752
|
-
function genAssets(assets, type, { helper, push, newline }) {
|
|
2758
|
+
function genAssets(assets, type, { helper, push, newline, isTS }) {
|
|
2753
2759
|
const resolver = helper(type === 'filter'
|
|
2754
2760
|
? RESOLVE_FILTER
|
|
2755
2761
|
: type === 'component'
|
|
@@ -2762,7 +2768,7 @@ function genAssets(assets, type, { helper, push, newline }) {
|
|
|
2762
2768
|
if (maybeSelfReference) {
|
|
2763
2769
|
id = id.slice(0, -6);
|
|
2764
2770
|
}
|
|
2765
|
-
push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})`);
|
|
2771
|
+
push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}`);
|
|
2766
2772
|
if (i < assets.length - 1) {
|
|
2767
2773
|
newline();
|
|
2768
2774
|
}
|
|
@@ -8185,4 +8191,4 @@ var compilerDom_cjs$1 = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(nu
|
|
|
8185
8191
|
});
|
|
8186
8192
|
|
|
8187
8193
|
exports.compilerDom_cjs = compilerDom_cjs$1;
|
|
8188
|
-
//# sourceMappingURL=dep-
|
|
8194
|
+
//# sourceMappingURL=dep-7db2a04d.js.map
|