@marko/vite 5.1.0 → 5.1.1
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.
- package/dist/index.mjs +11 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1098,7 +1098,7 @@ function markoPlugin(opts = {}) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
},
|
|
1101
|
-
async
|
|
1101
|
+
async options(inputOptions) {
|
|
1102
1102
|
if (isBuild && linked && !isSSRBuild) {
|
|
1103
1103
|
try {
|
|
1104
1104
|
serverManifest = await store.read();
|
|
@@ -1108,12 +1108,6 @@ function markoPlugin(opts = {}) {
|
|
|
1108
1108
|
entryIds.add(id);
|
|
1109
1109
|
cachedSources.set(id, serverManifest.entrySources[entry]);
|
|
1110
1110
|
}
|
|
1111
|
-
for (const assetId of serverManifest.ssrAssetIds) {
|
|
1112
|
-
this.load({
|
|
1113
|
-
id: normalizePath(path6.resolve(root, assetId)),
|
|
1114
|
-
resolveDependencies: false
|
|
1115
|
-
}).catch(noop2);
|
|
1116
|
-
}
|
|
1117
1111
|
} catch (err) {
|
|
1118
1112
|
this.error(
|
|
1119
1113
|
`You must run the "ssr" build before the "browser" build.`
|
|
@@ -1124,6 +1118,16 @@ function markoPlugin(opts = {}) {
|
|
|
1124
1118
|
}
|
|
1125
1119
|
}
|
|
1126
1120
|
},
|
|
1121
|
+
async buildStart() {
|
|
1122
|
+
if (isBuild && linked && !isSSRBuild) {
|
|
1123
|
+
for (const assetId of serverManifest.ssrAssetIds) {
|
|
1124
|
+
this.load({
|
|
1125
|
+
id: normalizePath(path6.resolve(root, assetId)),
|
|
1126
|
+
resolveDependencies: false
|
|
1127
|
+
}).catch(noop2);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1127
1131
|
async resolveId(importee, importer, importOpts, ssr = importOpts.ssr) {
|
|
1128
1132
|
if (virtualFiles.has(importee)) {
|
|
1129
1133
|
return importee;
|