vite 2.8.0-beta.7 → 2.8.3

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/LICENSE.md CHANGED
@@ -264,6 +264,62 @@ Repository: https://github.com/jridgewell/resolve-uri
264
264
 
265
265
  ---------------------------------------
266
266
 
267
+ ## @jridgewell/sourcemap-codec
268
+ License: MIT
269
+ By: Rich Harris
270
+ Repository: git+https://github.com/jridgewell/sourcemap-codec.git
271
+
272
+ > The MIT License
273
+ >
274
+ > Copyright (c) 2015 Rich Harris
275
+ >
276
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
277
+ > of this software and associated documentation files (the "Software"), to deal
278
+ > in the Software without restriction, including without limitation the rights
279
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
280
+ > copies of the Software, and to permit persons to whom the Software is
281
+ > furnished to do so, subject to the following conditions:
282
+ >
283
+ > The above copyright notice and this permission notice shall be included in
284
+ > all copies or substantial portions of the Software.
285
+ >
286
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
287
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
288
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
289
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
290
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
291
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
292
+ > THE SOFTWARE.
293
+
294
+ ---------------------------------------
295
+
296
+ ## @jridgewell/trace-mapping
297
+ License: MIT
298
+ By: Justin Ridgewell
299
+ Repository: git+https://github.com/jridgewell/trace-mapping.git
300
+
301
+ > Copyright 2022 Justin Ridgewell <justin@ridgewell.name>
302
+ >
303
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
304
+ > of this software and associated documentation files (the "Software"), to deal
305
+ > in the Software without restriction, including without limitation the rights
306
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
307
+ > copies of the Software, and to permit persons to whom the Software is
308
+ > furnished to do so, subject to the following conditions:
309
+ >
310
+ > The above copyright notice and this permission notice shall be included in
311
+ > all copies or substantial portions of the Software.
312
+ >
313
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
314
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
315
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
316
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
317
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
318
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
319
+ > SOFTWARE.
320
+
321
+ ---------------------------------------
322
+
267
323
  ## @nodelib/fs.scandir
268
324
  License: MIT
269
325
  Repository: https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir
@@ -1185,7 +1241,6 @@ Repository: git://github.com/motdotla/dotenv.git
1185
1241
  ## dotenv-expand
1186
1242
  License: BSD-2-Clause
1187
1243
  By: motdotla
1188
- Repository: https://github.com/motdotla/dotenv-expand
1189
1244
 
1190
1245
  > Copyright (c) 2016, Scott Motte
1191
1246
  > All rights reserved.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var build = require('./dep-c9c9d3e5.js');
3
+ var build = require('./dep-f9d9421a.js');
4
4
  var require$$1 = require('crypto');
5
5
  require('fs');
6
6
  require('path');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var require$$0 = require('postcss');
4
- var build$2 = require('./dep-c9c9d3e5.js');
4
+ var build$2 = require('./dep-f9d9421a.js');
5
5
  var path$2 = require('path');
6
6
  var require$$1 = require('crypto');
7
7
  var fs = require('fs');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var build = require('./dep-c9c9d3e5.js');
3
+ var build = require('./dep-f9d9421a.js');
4
4
 
5
5
  function _mergeNamespaces(n, m) {
6
6
  for (var i = 0; i < m.length; i++) {
@@ -456,13 +456,15 @@ function looseIndexOf(arr, val) {
456
456
  * @private
457
457
  */
458
458
  const toDisplayString = (val) => {
459
- return val == null
460
- ? ''
461
- : isArray(val) ||
462
- (isObject(val) &&
463
- (val.toString === objectToString || !isFunction(val.toString)))
464
- ? JSON.stringify(val, replacer, 2)
465
- : String(val);
459
+ return isString(val)
460
+ ? val
461
+ : val == null
462
+ ? ''
463
+ : isArray(val) ||
464
+ (isObject(val) &&
465
+ (val.toString === objectToString || !isFunction(val.toString)))
466
+ ? JSON.stringify(val, replacer, 2)
467
+ : String(val);
466
468
  };
467
469
  const replacer = (_key, val) => {
468
470
  // can't use isRef here since @vue/shared has no deps
@@ -537,6 +539,7 @@ const isReservedProp = /*#__PURE__*/ makeMap(
537
539
  'onVnodeBeforeMount,onVnodeMounted,' +
538
540
  'onVnodeBeforeUpdate,onVnodeUpdated,' +
539
541
  'onVnodeBeforeUnmount,onVnodeUnmounted');
542
+ const isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo');
540
543
  const cacheStringFunction$1 = (fn) => {
541
544
  const cache = Object.create(null);
542
545
  return ((str) => {
@@ -619,6 +622,7 @@ var shared_esmBundler = {
619
622
  invokeArrayFns: invokeArrayFns,
620
623
  isArray: isArray,
621
624
  isBooleanAttr: isBooleanAttr,
625
+ isBuiltInDirective: isBuiltInDirective,
622
626
  isDate: isDate,
623
627
  isFunction: isFunction,
624
628
  isGloballyWhitelisted: isGloballyWhitelisted,
@@ -1378,13 +1382,13 @@ const deprecationData = {
1378
1382
  message: `Platform-native elements with "is" prop will no longer be ` +
1379
1383
  `treated as components in Vue 3 unless the "is" value is explicitly ` +
1380
1384
  `prefixed with "vue:".`,
1381
- link: `https://v3.vuejs.org/guide/migration/custom-elements-interop.html`
1385
+ link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`
1382
1386
  },
1383
1387
  ["COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */]: {
1384
1388
  message: key => `.sync modifier for v-bind has been removed. Use v-model with ` +
1385
1389
  `argument instead. \`v-bind:${key}.sync\` should be changed to ` +
1386
1390
  `\`v-model:${key}\`.`,
1387
- link: `https://v3.vuejs.org/guide/migration/v-model.html`
1391
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html`
1388
1392
  },
1389
1393
  ["COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */]: {
1390
1394
  message: `.prop modifier for v-bind has been removed and no longer necessary. ` +
@@ -1396,11 +1400,11 @@ const deprecationData = {
1396
1400
  `that appears before v-bind in the case of conflict. ` +
1397
1401
  `To retain 2.x behavior, move v-bind to make it the first attribute. ` +
1398
1402
  `You can also suppress this warning if the usage is intended.`,
1399
- link: `https://v3.vuejs.org/guide/migration/v-bind.html`
1403
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html`
1400
1404
  },
1401
1405
  ["COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */]: {
1402
1406
  message: `.native modifier for v-on has been removed as is no longer necessary.`,
1403
- link: `https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html`
1407
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`
1404
1408
  },
1405
1409
  ["COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: {
1406
1410
  message: `v-if / v-for precedence when used on the same element has changed ` +
@@ -1408,7 +1412,7 @@ const deprecationData = {
1408
1412
  `access to v-for scope variables. It is best to avoid the ambiguity ` +
1409
1413
  `with <template> tags or use a computed property that filters v-for ` +
1410
1414
  `data source.`,
1411
- link: `https://v3.vuejs.org/guide/migration/v-if-v-for.html`
1415
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`
1412
1416
  },
1413
1417
  ["COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */]: {
1414
1418
  message: `<template> with no special directives will render as a native template ` +
@@ -1416,13 +1420,13 @@ const deprecationData = {
1416
1420
  },
1417
1421
  ["COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */]: {
1418
1422
  message: `"inline-template" has been removed in Vue 3.`,
1419
- link: `https://v3.vuejs.org/guide/migration/inline-template-attribute.html`
1423
+ link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
1420
1424
  },
1421
1425
  ["COMPILER_FILTER" /* COMPILER_FILTERS */]: {
1422
1426
  message: `filters have been removed in Vue 3. ` +
1423
1427
  `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` +
1424
1428
  `Use method calls or computed properties instead.`,
1425
- link: `https://v3.vuejs.org/guide/migration/filters.html`
1429
+ link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
1426
1430
  }
1427
1431
  };
1428
1432
  function getCompatValue(key, context) {
@@ -4660,7 +4664,7 @@ function buildProps(node, context, props = node.props, ssr = false) {
4660
4664
  }
4661
4665
  }
4662
4666
  }
4663
- else {
4667
+ else if (!isBuiltInDirective(name)) {
4664
4668
  // no built-in transform, this is a user custom directive.
4665
4669
  runtimeDirectives.push(prop);
4666
4670
  // custom dirs may use beforeUpdate so they need to force blocks
@@ -5556,6 +5560,7 @@ var compilerCore_esmBundler = {
5556
5560
  assert: assert,
5557
5561
  baseCompile: baseCompile,
5558
5562
  baseParse: baseParse,
5563
+ buildDirectiveArgs: buildDirectiveArgs,
5559
5564
  buildProps: buildProps,
5560
5565
  buildSlots: buildSlots,
5561
5566
  checkCompatEnabled: checkCompatEnabled,