0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00

editor tips

This commit is contained in:
Matthew Phillips 2024-07-01 11:02:30 -04:00
parent c8346fff13
commit ddf49ef54e

View file

@ -29,7 +29,7 @@ export function vitePluginServerIslands({ settings }: { settings: AstroSettings
return `export const serverIslandMap = ${serverIslandPlaceholder};`;
}
},
transform(code, id, options) {
transform(_code, id) {
if(id.endsWith('.astro')) {
const info = this.getModuleInfo(id);
if(info?.meta) {
@ -73,7 +73,7 @@ export function vitePluginServerIslands({ settings }: { settings: AstroSettings
}
}
},
generateBundle(options, bundles) {
generateBundle(_options, bundles) {
let mapSource = 'new Map([';
for(let [resolvedPath, referenceId] of referenceIdMap) {
const fileName = this.getFileName(referenceId);