mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
editor tips
This commit is contained in:
parent
c8346fff13
commit
ddf49ef54e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue