vite 2.7.11 → 2.7.12
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/dist/node/chunks/{dep-48c3e8a4.js → dep-0351185a.js} +33 -22
- package/dist/node/chunks/{dep-48c3e8a4.js.map → dep-0351185a.js.map} +1 -1
- package/dist/node/chunks/{dep-eba23f6c.js → dep-374a3cfd.js} +2 -2
- package/dist/node/chunks/{dep-eba23f6c.js.map → dep-374a3cfd.js.map} +1 -1
- package/dist/node/chunks/{dep-03a0dd3b.js → dep-73d734ac.js} +2 -2
- package/dist/node/chunks/{dep-03a0dd3b.js.map → dep-73d734ac.js.map} +1 -1
- package/dist/node/chunks/{dep-81908534.js → dep-d7204208.js} +2 -2
- package/dist/node/chunks/{dep-81908534.js.map → dep-d7204208.js.map} +1 -1
- package/dist/node/cli.js +4 -4
- package/dist/node/index.js +1 -1
- package/package.json +1 -1
|
@@ -20397,7 +20397,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
20397
20397
|
replacer: urlReplacer
|
|
20398
20398
|
}));
|
|
20399
20399
|
if (isModule) {
|
|
20400
|
-
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-
|
|
20400
|
+
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-73d734ac.js'); }).then(function (n) { return n.index; })).default({
|
|
20401
20401
|
...modulesOptions,
|
|
20402
20402
|
getJSON(cssFileName, _modules, outputFileName) {
|
|
20403
20403
|
modules = _modules;
|
|
@@ -21402,7 +21402,7 @@ const assetAttrsConfig = {
|
|
|
21402
21402
|
const isAsyncScriptMap = new WeakMap();
|
|
21403
21403
|
async function traverseHtml(html, filePath, visitor) {
|
|
21404
21404
|
// lazy load compiler
|
|
21405
|
-
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-
|
|
21405
|
+
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-d7204208.js'); }).then(function (n) { return n.compilerDom_cjs; });
|
|
21406
21406
|
// @vue/compiler-core doesn't like lowercase doctypes
|
|
21407
21407
|
html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
|
|
21408
21408
|
try {
|
|
@@ -43719,7 +43719,7 @@ function readFileIfExists(value) {
|
|
|
43719
43719
|
* https://github.com/webpack/webpack-dev-server/blob/master/LICENSE
|
|
43720
43720
|
*/
|
|
43721
43721
|
async function createCertificate() {
|
|
43722
|
-
const { generate } = await Promise.resolve().then(function () { return require('./dep-
|
|
43722
|
+
const { generate } = await Promise.resolve().then(function () { return require('./dep-374a3cfd.js'); }).then(function (n) { return n.index; });
|
|
43723
43723
|
const pems = generate(null, {
|
|
43724
43724
|
algorithm: 'sha256',
|
|
43725
43725
|
days: 30,
|
|
@@ -74692,10 +74692,10 @@ async function resolveConfig(inlineConfig, command, defaultMode = 'development')
|
|
|
74692
74692
|
{ find: /^[\/]?@vite\/client/, replacement: () => CLIENT_ENTRY }
|
|
74693
74693
|
];
|
|
74694
74694
|
// resolve alias with internal client alias
|
|
74695
|
-
const resolvedAlias = mergeAlias(
|
|
74695
|
+
const resolvedAlias = normalizeAlias(mergeAlias(
|
|
74696
74696
|
// @ts-ignore because @rollup/plugin-alias' type doesn't allow function
|
|
74697
74697
|
// replacement, but its implementation does work with function values.
|
|
74698
|
-
clientAlias, ((_a = config.resolve) === null || _a === void 0 ? void 0 : _a.alias) || config.alias || []);
|
|
74698
|
+
clientAlias, ((_a = config.resolve) === null || _a === void 0 ? void 0 : _a.alias) || config.alias || []));
|
|
74699
74699
|
const resolveOptions = {
|
|
74700
74700
|
dedupe: config.dedupe,
|
|
74701
74701
|
...config.resolve,
|
|
@@ -74929,22 +74929,24 @@ function mergeConfigRecursively(defaults, overrides, rootPath) {
|
|
|
74929
74929
|
continue;
|
|
74930
74930
|
}
|
|
74931
74931
|
const existing = merged[key];
|
|
74932
|
+
if (existing == null) {
|
|
74933
|
+
merged[key] = value;
|
|
74934
|
+
continue;
|
|
74935
|
+
}
|
|
74932
74936
|
// fields that require special handling
|
|
74933
|
-
if (
|
|
74934
|
-
|
|
74935
|
-
|
|
74936
|
-
|
|
74937
|
-
|
|
74938
|
-
|
|
74939
|
-
|
|
74940
|
-
|
|
74941
|
-
|
|
74942
|
-
|
|
74943
|
-
continue;
|
|
74944
|
-
}
|
|
74937
|
+
if (key === 'alias' && (rootPath === 'resolve' || rootPath === '')) {
|
|
74938
|
+
merged[key] = mergeAlias(existing, value);
|
|
74939
|
+
continue;
|
|
74940
|
+
}
|
|
74941
|
+
else if (key === 'assetsInclude' && rootPath === '') {
|
|
74942
|
+
merged[key] = [].concat(existing, value);
|
|
74943
|
+
continue;
|
|
74944
|
+
}
|
|
74945
|
+
else if (key === 'noExternal' && existing === true) {
|
|
74946
|
+
continue;
|
|
74945
74947
|
}
|
|
74946
74948
|
if (Array.isArray(existing) || Array.isArray(value)) {
|
|
74947
|
-
merged[key] = [...arraify(existing), ...arraify(value)];
|
|
74949
|
+
merged[key] = [...arraify(existing !== null && existing !== void 0 ? existing : []), ...arraify(value !== null && value !== void 0 ? value : [])];
|
|
74948
74950
|
continue;
|
|
74949
74951
|
}
|
|
74950
74952
|
if (isObject$3(existing) && isObject$3(value)) {
|
|
@@ -74958,10 +74960,19 @@ function mergeConfigRecursively(defaults, overrides, rootPath) {
|
|
|
74958
74960
|
function mergeConfig(defaults, overrides, isRoot = true) {
|
|
74959
74961
|
return mergeConfigRecursively(defaults, overrides, isRoot ? '' : '.');
|
|
74960
74962
|
}
|
|
74961
|
-
function mergeAlias(a
|
|
74962
|
-
|
|
74963
|
+
function mergeAlias(a, b) {
|
|
74964
|
+
if (!a)
|
|
74965
|
+
return b;
|
|
74966
|
+
if (!b)
|
|
74967
|
+
return a;
|
|
74968
|
+
if (isObject$3(a) && isObject$3(b)) {
|
|
74969
|
+
return { ...a, ...b };
|
|
74970
|
+
}
|
|
74971
|
+
// the order is flipped because the alias is resolved from top-down,
|
|
74972
|
+
// where the later should have higher priority
|
|
74973
|
+
return [...normalizeAlias(b), ...normalizeAlias(a)];
|
|
74963
74974
|
}
|
|
74964
|
-
function normalizeAlias(o) {
|
|
74975
|
+
function normalizeAlias(o = []) {
|
|
74965
74976
|
return Array.isArray(o)
|
|
74966
74977
|
? o.map(normalizeSingleAlias)
|
|
74967
74978
|
: Object.keys(o).map((find) => normalizeSingleAlias({
|
|
@@ -75242,4 +75253,4 @@ exports.send = send$1;
|
|
|
75242
75253
|
exports.sortUserPlugins = sortUserPlugins;
|
|
75243
75254
|
exports.source = source;
|
|
75244
75255
|
exports.transformWithEsbuild = transformWithEsbuild;
|
|
75245
|
-
//# sourceMappingURL=dep-
|
|
75256
|
+
//# sourceMappingURL=dep-0351185a.js.map
|