vite 2.7.9 → 2.7.10
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 +15 -0
- package/dist/node/chunks/{dep-6e9ef787.js → dep-5a0fbe99.js} +2 -2
- package/dist/node/chunks/{dep-6e9ef787.js.map → dep-5a0fbe99.js.map} +1 -1
- package/dist/node/chunks/{dep-0cbbc772.js → dep-6899098c.js} +2 -2
- package/dist/node/chunks/{dep-0cbbc772.js.map → dep-6899098c.js.map} +1 -1
- package/dist/node/chunks/{dep-4b9dfa16.js → dep-76613303.js} +12 -8
- package/dist/node/chunks/{dep-4b9dfa16.js.map → dep-76613303.js.map} +1 -1
- package/dist/node/chunks/{dep-37807119.js → dep-be90506c.js} +2 -2
- package/dist/node/chunks/{dep-37807119.js.map → dep-be90506c.js.map} +1 -1
- package/dist/node/cli.js +4 -4
- package/dist/node/index.d.ts +7 -0
- package/dist/node/index.js +1 -1
- package/dist/node/server/index.d.ts +7 -0
- 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-be90506c.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-6899098c.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-5a0fbe99.js'); }).then(function (n) { return n.index; });
|
|
43723
43723
|
const pems = generate(null, {
|
|
43724
43724
|
algorithm: 'sha256',
|
|
43725
43725
|
days: 30,
|
|
@@ -59940,7 +59940,8 @@ function ssrRequireHookPlugin(config) {
|
|
|
59940
59940
|
return {
|
|
59941
59941
|
code: s.toString(),
|
|
59942
59942
|
map: s.generateMap({
|
|
59943
|
-
source: id
|
|
59943
|
+
source: id,
|
|
59944
|
+
hires: true
|
|
59944
59945
|
})
|
|
59945
59946
|
};
|
|
59946
59947
|
}
|
|
@@ -60638,7 +60639,10 @@ function resolvedAllowDir(root, dir) {
|
|
|
60638
60639
|
}
|
|
60639
60640
|
function resolveServerOptions(root, raw) {
|
|
60640
60641
|
var _a, _b, _c, _d;
|
|
60641
|
-
const server =
|
|
60642
|
+
const server = {
|
|
60643
|
+
preTransformRequests: true,
|
|
60644
|
+
...raw
|
|
60645
|
+
};
|
|
60642
60646
|
let allowDirs = (_a = server.fs) === null || _a === void 0 ? void 0 : _a.allow;
|
|
60643
60647
|
const deny = ((_b = server.fs) === null || _b === void 0 ? void 0 : _b.deny) || ['.env', '.env.*', '*.{crt,pem}'];
|
|
60644
60648
|
if (!allowDirs) {
|
|
@@ -73940,7 +73944,7 @@ function importAnalysisPlugin(config) {
|
|
|
73940
73944
|
isDebug &&
|
|
73941
73945
|
debug$1(`${timeFrom(start)} ${source.dim(`[${importedUrls.size} imports rewritten] ${prettyImporter}`)}`);
|
|
73942
73946
|
// pre-transform known direct imports
|
|
73943
|
-
if (staticImportedUrls.size) {
|
|
73947
|
+
if (config.server.preTransformRequests && staticImportedUrls.size) {
|
|
73944
73948
|
staticImportedUrls.forEach((url) => {
|
|
73945
73949
|
transformRequest(unwrapId$1(removeImportQuery(url)), server, { ssr });
|
|
73946
73950
|
});
|
|
@@ -74414,7 +74418,6 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
|
|
|
74414
74418
|
ssrConfig: config.ssr,
|
|
74415
74419
|
asSrc: true
|
|
74416
74420
|
}),
|
|
74417
|
-
config.build.ssr ? ssrRequireHookPlugin(config) : null,
|
|
74418
74421
|
htmlInlineScriptProxyPlugin(config),
|
|
74419
74422
|
cssPlugin(config),
|
|
74420
74423
|
config.esbuild !== false ? esbuildPlugin(config.esbuild) : null,
|
|
@@ -74428,6 +74431,7 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
|
|
|
74428
74431
|
...normalPlugins,
|
|
74429
74432
|
definePlugin(config),
|
|
74430
74433
|
cssPostPlugin(config),
|
|
74434
|
+
config.build.ssr ? ssrRequireHookPlugin(config) : null,
|
|
74431
74435
|
...buildPlugins.pre,
|
|
74432
74436
|
...postPlugins,
|
|
74433
74437
|
...buildPlugins.post,
|
|
@@ -75230,4 +75234,4 @@ exports.send = send$1;
|
|
|
75230
75234
|
exports.sortUserPlugins = sortUserPlugins;
|
|
75231
75235
|
exports.source = source;
|
|
75232
75236
|
exports.transformWithEsbuild = transformWithEsbuild;
|
|
75233
|
-
//# sourceMappingURL=dep-
|
|
75237
|
+
//# sourceMappingURL=dep-76613303.js.map
|