vite 2.8.0-beta.6 → 2.8.0-beta.7
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 +9 -0
- package/dist/node/chunks/{dep-4b0cbf9b.js → dep-6a30742f.js} +1 -1
- package/dist/node/chunks/{dep-59826f35.js → dep-752d5fd3.js} +1 -1
- package/dist/node/chunks/{dep-3f888c22.js → dep-9e561a04.js} +1 -1
- package/dist/node/chunks/{dep-b8b00184.js → dep-c9c9d3e5.js} +3 -7
- package/dist/node/cli.js +4 -4
- package/dist/node/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# [2.8.0-beta.7](https://github.com/vitejs/vite/compare/v2.8.0-beta.6...v2.8.0-beta.7) (2022-02-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* revert [#6233](https://github.com/vitejs/vite/issues/6233), strip query when resolving entry (fix [#6797](https://github.com/vitejs/vite/issues/6797)) ([a012644](https://github.com/vitejs/vite/commit/a0126441a556b4991ac14cf037820194ab9e17b9))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
# [2.8.0-beta.6](https://github.com/vitejs/vite/compare/v2.8.0-beta.5...v2.8.0-beta.6) (2022-02-07)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -18872,7 +18872,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
18872
18872
|
replacer: urlReplacer
|
|
18873
18873
|
}));
|
|
18874
18874
|
if (isModule) {
|
|
18875
|
-
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-
|
|
18875
|
+
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-752d5fd3.js'); }).then(function (n) { return n.index; })).default({
|
|
18876
18876
|
...modulesOptions,
|
|
18877
18877
|
getJSON(cssFileName, _modules, outputFileName) {
|
|
18878
18878
|
modules = _modules;
|
|
@@ -21295,7 +21295,7 @@ const assetAttrsConfig = {
|
|
|
21295
21295
|
const isAsyncScriptMap = new WeakMap();
|
|
21296
21296
|
async function traverseHtml(html, filePath, visitor) {
|
|
21297
21297
|
// lazy load compiler
|
|
21298
|
-
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-
|
|
21298
|
+
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-9e561a04.js'); }).then(function (n) { return n.compilerDom_cjs; });
|
|
21299
21299
|
// @vue/compiler-core doesn't like lowercase doctypes
|
|
21300
21300
|
html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
|
|
21301
21301
|
try {
|
|
@@ -29527,10 +29527,6 @@ function resolveExports(pkg, key, options, targetWeb) {
|
|
|
29527
29527
|
});
|
|
29528
29528
|
}
|
|
29529
29529
|
function resolveDeepImport(id, { webResolvedImports, setResolvedCache, getResolvedCache, dir, data }, targetWeb, options) {
|
|
29530
|
-
// id might contain ?query
|
|
29531
|
-
// e.g. when using `<style src="some-pkg/dist/style.css"></style>` in .vue file
|
|
29532
|
-
// the id will be ./dist/style.css?vue&type=style&index=0&src=xxx&lang.css
|
|
29533
|
-
id = id.split('?')[0];
|
|
29534
29530
|
const cache = getResolvedCache(id, targetWeb);
|
|
29535
29531
|
if (cache) {
|
|
29536
29532
|
return cache;
|
|
@@ -45040,7 +45036,7 @@ async function getCertificate(cacheDir) {
|
|
|
45040
45036
|
return content;
|
|
45041
45037
|
}
|
|
45042
45038
|
catch {
|
|
45043
|
-
const content = (await Promise.resolve().then(function () { return require('./dep-
|
|
45039
|
+
const content = (await Promise.resolve().then(function () { return require('./dep-6a30742f.js'); })).createCertificate();
|
|
45044
45040
|
fs$n.promises
|
|
45045
45041
|
.mkdir(cacheDir, { recursive: true })
|
|
45046
45042
|
.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 build = require('./chunks/dep-
|
|
4
|
+
var build = require('./chunks/dep-c9c9d3e5.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-c9c9d3e5.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: build$1 } = await Promise.resolve().then(function () { return require('./chunks/dep-
|
|
735
|
+
const { build: build$1 } = await Promise.resolve().then(function () { return require('./chunks/dep-c9c9d3e5.js'); }).then(function (n) { return n.build$1; });
|
|
736
736
|
const buildOptions = cleanOptions(options);
|
|
737
737
|
try {
|
|
738
738
|
await build$1({
|
|
@@ -755,7 +755,7 @@ cli
|
|
|
755
755
|
.command('optimize [root]')
|
|
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-c9c9d3e5.js'); }).then(function (n) { return n.index; });
|
|
759
759
|
try {
|
|
760
760
|
const config = await build.resolveConfig({
|
|
761
761
|
root,
|
package/dist/node/index.js
CHANGED