vite 2.9.3 → 2.9.4
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-e1560bbd.js → dep-2fd39086.js} +4 -4
- package/dist/node/chunks/{dep-7f1d9c29.js → dep-a2c7fba7.js} +1 -1
- package/dist/node/chunks/{dep-0620f5de.js → dep-b006c17c.js} +1 -1
- package/dist/node/chunks/{dep-fbe4d8d9.js → dep-f0683f19.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.js +1 -1
- package/package.json +1 -1
|
@@ -26851,7 +26851,7 @@ const assetAttrsConfig = {
|
|
|
26851
26851
|
const isAsyncScriptMap = new WeakMap();
|
|
26852
26852
|
async function traverseHtml(html, filePath, visitor) {
|
|
26853
26853
|
// lazy load compiler
|
|
26854
|
-
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-
|
|
26854
|
+
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-a2c7fba7.js'); }).then(function (n) { return n.compilerDom_cjs; });
|
|
26855
26855
|
// @vue/compiler-core doesn't like lowercase doctypes
|
|
26856
26856
|
html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
|
|
26857
26857
|
try {
|
|
@@ -27951,7 +27951,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
27951
27951
|
replacer: urlReplacer
|
|
27952
27952
|
}));
|
|
27953
27953
|
if (isModule) {
|
|
27954
|
-
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-
|
|
27954
|
+
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-f0683f19.js'); }).then(function (n) { return n.index; })).default({
|
|
27955
27955
|
...modulesOptions,
|
|
27956
27956
|
getJSON(cssFileName, _modules, outputFileName) {
|
|
27957
27957
|
modules = _modules;
|
|
@@ -28233,7 +28233,7 @@ async function hoistAtRules(css) {
|
|
|
28233
28233
|
// CSS @import can only appear at top of the file. We need to hoist all @import
|
|
28234
28234
|
// to top when multiple files are concatenated.
|
|
28235
28235
|
// match until semicolon that's not in quotes
|
|
28236
|
-
s.replace(/@import\s*(?:"[^"]*"|'[^']*'|[^;]*).*?;/gm, (match) => {
|
|
28236
|
+
s.replace(/@import\s*(?:url\([^\)]*\)|"[^"]*"|'[^']*'|[^;]*).*?;/gm, (match) => {
|
|
28237
28237
|
s.appendLeft(0, match);
|
|
28238
28238
|
return '';
|
|
28239
28239
|
});
|
|
@@ -47142,7 +47142,7 @@ async function getCertificate(cacheDir) {
|
|
|
47142
47142
|
return content;
|
|
47143
47143
|
}
|
|
47144
47144
|
catch {
|
|
47145
|
-
const content = (await Promise.resolve().then(function () { return require('./dep-
|
|
47145
|
+
const content = (await Promise.resolve().then(function () { return require('./dep-b006c17c.js'); })).createCertificate();
|
|
47146
47146
|
fs$n.promises
|
|
47147
47147
|
.mkdir(cacheDir, { recursive: true })
|
|
47148
47148
|
.then(() => fs$n.promises.writeFile(cachePath, content))
|
package/dist/node/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$0 = require('events');
|
|
4
|
-
var index = require('./chunks/dep-
|
|
4
|
+
var index = require('./chunks/dep-2fd39086.js');
|
|
5
5
|
var perf_hooks = require('perf_hooks');
|
|
6
6
|
require('fs');
|
|
7
7
|
require('path');
|
|
@@ -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-2fd39086.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-2fd39086.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-2fd39086.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-2fd39086.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