vite 2.9.11 → 2.9.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-97cb3622.js → dep-8f5c9290.js} +10 -3
- package/dist/node/chunks/{dep-97896439.js → dep-985abbbd.js} +1 -1
- package/dist/node/chunks/{dep-2536e1a0.js → dep-ad22985c.js} +1 -1
- package/dist/node/chunks/{dep-cfda01c8.js → dep-b27bdd3c.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.js +1 -1
- package/package.json +1 -1
|
@@ -36554,7 +36554,7 @@ const assetAttrsConfig = {
|
|
|
36554
36554
|
const isAsyncScriptMap = new WeakMap();
|
|
36555
36555
|
async function traverseHtml(html, filePath, visitor) {
|
|
36556
36556
|
// lazy load compiler
|
|
36557
|
-
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-
|
|
36557
|
+
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-985abbbd.js'); }).then(function (n) { return n.compilerDom_cjs; });
|
|
36558
36558
|
// @vue/compiler-core doesn't like lowercase doctypes
|
|
36559
36559
|
html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
|
|
36560
36560
|
try {
|
|
@@ -37604,7 +37604,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
37604
37604
|
replacer: urlReplacer
|
|
37605
37605
|
}));
|
|
37606
37606
|
if (isModule) {
|
|
37607
|
-
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-
|
|
37607
|
+
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-b27bdd3c.js'); }).then(function (n) { return n.index; })).default({
|
|
37608
37608
|
...modulesOptions,
|
|
37609
37609
|
getJSON(cssFileName, _modules, outputFileName) {
|
|
37610
37610
|
modules = _modules;
|
|
@@ -48163,7 +48163,7 @@ async function getCertificate(cacheDir) {
|
|
|
48163
48163
|
return content;
|
|
48164
48164
|
}
|
|
48165
48165
|
catch {
|
|
48166
|
-
const content = (await Promise.resolve().then(function () { return require('./dep-
|
|
48166
|
+
const content = (await Promise.resolve().then(function () { return require('./dep-ad22985c.js'); })).createCertificate();
|
|
48167
48167
|
fs$n.promises
|
|
48168
48168
|
.mkdir(cacheDir, { recursive: true })
|
|
48169
48169
|
.then(() => fs$n.promises.writeFile(cachePath, content))
|
|
@@ -58274,6 +58274,13 @@ function importAnalysisPlugin(config) {
|
|
|
58274
58274
|
// since we are already in the transform phase of the importer, it must
|
|
58275
58275
|
// have been loaded so its entry is guaranteed in the module graph.
|
|
58276
58276
|
const importerModule = moduleGraph.getModuleById(importer);
|
|
58277
|
+
if (!importerModule && isOptimizedDepFile(importer, config)) {
|
|
58278
|
+
// Ids of optimized deps could be invalidated and removed from the graph
|
|
58279
|
+
// Return without transforming, this request is no longer valid, a full reload
|
|
58280
|
+
// is going to request this id again. Throwing an outdated error so we
|
|
58281
|
+
// properly finish the request with a 504 sent to the browser.
|
|
58282
|
+
throwOutdatedRequest(importer);
|
|
58283
|
+
}
|
|
58277
58284
|
if (!imports.length) {
|
|
58278
58285
|
importerModule.isSelfAccepting = false;
|
|
58279
58286
|
isDebug &&
|
package/dist/node/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var perf_hooks = require('perf_hooks');
|
|
4
4
|
var require$$0 = require('events');
|
|
5
|
-
var index = require('./chunks/dep-
|
|
5
|
+
var index = require('./chunks/dep-8f5c9290.js');
|
|
6
6
|
require('fs');
|
|
7
7
|
require('path');
|
|
8
8
|
require('url');
|
|
@@ -683,7 +683,7 @@ cli
|
|
|
683
683
|
.action(async (root, options) => {
|
|
684
684
|
// output structure is preserved even after bundling so require()
|
|
685
685
|
// is ok here
|
|
686
|
-
const { createServer } = await Promise.resolve().then(function () { return require('./chunks/dep-
|
|
686
|
+
const { createServer } = await Promise.resolve().then(function () { return require('./chunks/dep-8f5c9290.js'); }).then(function (n) { return n.index$1; });
|
|
687
687
|
try {
|
|
688
688
|
const server = await createServer({
|
|
689
689
|
root,
|
|
@@ -732,7 +732,7 @@ cli
|
|
|
732
732
|
.option('--emptyOutDir', `[boolean] force empty outDir when it's outside of root`)
|
|
733
733
|
.option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
|
|
734
734
|
.action(async (root, options) => {
|
|
735
|
-
const { build } = await Promise.resolve().then(function () { return require('./chunks/dep-
|
|
735
|
+
const { build } = await Promise.resolve().then(function () { return require('./chunks/dep-8f5c9290.js'); }).then(function (n) { return n.build$1; });
|
|
736
736
|
const buildOptions = cleanOptions(options);
|
|
737
737
|
try {
|
|
738
738
|
await build({
|
|
@@ -755,7 +755,7 @@ cli
|
|
|
755
755
|
.command('optimize [root]', 'pre-bundle dependencies')
|
|
756
756
|
.option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
|
|
757
757
|
.action(async (root, options) => {
|
|
758
|
-
const { optimizeDeps } = await Promise.resolve().then(function () { return require('./chunks/dep-
|
|
758
|
+
const { optimizeDeps } = await Promise.resolve().then(function () { return require('./chunks/dep-8f5c9290.js'); }).then(function (n) { return n.index; });
|
|
759
759
|
try {
|
|
760
760
|
const config = await index.resolveConfig({
|
|
761
761
|
root,
|
|
@@ -778,7 +778,7 @@ cli
|
|
|
778
778
|
.option('--https', `[boolean] use TLS + HTTP/2`)
|
|
779
779
|
.option('--open [path]', `[boolean | string] open browser on startup`)
|
|
780
780
|
.action(async (root, options) => {
|
|
781
|
-
const { preview } = await Promise.resolve().then(function () { return require('./chunks/dep-
|
|
781
|
+
const { preview } = await Promise.resolve().then(function () { return require('./chunks/dep-8f5c9290.js'); }).then(function (n) { return n.preview$1; });
|
|
782
782
|
try {
|
|
783
783
|
const server = await preview({
|
|
784
784
|
root,
|
package/dist/node/index.js
CHANGED