1
1
diff --git a/node_modules/vite/dist/node/chunks/dep-0fc8e132.js b/node_modules/vite/dist/node/chunks/dep-0fc8e132.js
2
- index 54ffaf0..0ae10f7 100644
2
+ index 54ffaf0..653c4d4 100644
3
3
--- a/node_modules/vite/dist/node/chunks/dep-0fc8e132.js
4
4
+++ b/node_modules/vite/dist/node/chunks/dep-0fc8e132.js
5
5
@@ -12002,6 +12002,10 @@ function copyDir(srcDir, destDir) {
@@ -24,3 +24,39 @@ index 54ffaf0..0ae10f7 100644
24
24
if (headers) {
25
25
for (const name in headers) {
26
26
res.setHeader(name, headers[name]);
27
+ @@ -40203,7 +40211,7 @@ function importAnalysisPlugin(config) {
28
+ // properly finish the request with a 504 sent to the browser.
29
+ throwOutdatedRequest(importer);
30
+ }
31
+ - if (!imports.length) {
32
+ + if (!imports.length && !this._addedImports) {
33
+ importerModule.isSelfAccepting = false;
34
+ isDebug$1 &&
35
+ debug$7(`${timeFrom(start)} ${picocolors.exports.dim(`[no imports] ${prettyImporter}`)}`);
36
+ @@ -40224,7 +40232,7 @@ function importAnalysisPlugin(config) {
37
+ ? new Map()
38
+ : null;
39
+ const toAbsoluteUrl = (url) => path$n.posix.resolve(path$n.posix.dirname(importerModule.url), url);
40
+ - const normalizeUrl = async (url, pos) => {
41
+ + const normalizeUrl = async (url, pos, forceSkipImportAnalysis) => {
42
+ if (base !== '/' && url.startsWith(base)) {
43
+ url = url.replace(base, '/');
44
+ }
45
+ @@ -40303,7 +40311,7 @@ function importAnalysisPlugin(config) {
46
+ // up-to-date version of this module.
47
+ try {
48
+ // delay setting `isSelfAccepting` until the file is actually used (#7870)
49
+ - const depModule = await moduleGraph.ensureEntryFromUrl(url, ssr, canSkipImportAnalysis(url));
50
+ + const depModule = await moduleGraph.ensureEntryFromUrl(url, ssr, canSkipImportAnalysis(url) || forceSkipImportAnalysis);
51
+ if (depModule.lastHMRTimestamp > 0) {
52
+ url = injectQuery(url, `t=${depModule.lastHMRTimestamp}`);
53
+ }
54
+ @@ -40518,7 +40526,7 @@ function importAnalysisPlugin(config) {
55
+ // attached by pluginContainer.addWatchFile
56
+ const pluginImports = this._addedImports;
57
+ if (pluginImports) {
58
+ - (await Promise.all([...pluginImports].map((id) => normalizeUrl(id, 0)))).forEach(([url]) => importedUrls.add(url));
59
+ + (await Promise.all([...pluginImports].map((id) => normalizeUrl(id, 0, true)))).forEach(([url]) => importedUrls.add(url));
60
+ }
61
+ // HMR transforms are no-ops in SSR, so an `accept` call will
62
+ // never be injected. Avoid updating the `isSelfAccepting`
0 commit comments