mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
c0e4b1df9f
commit
d7948fa3e6
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ export function vitePluginInternals(input: Set<string>, internals: BuildInternal
|
||||||
promises.push(
|
promises.push(
|
||||||
this.resolve(specifier).then((result) => {
|
this.resolve(specifier).then((result) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
if(mapping.has(result.id)) {
|
if (mapping.has(result.id)) {
|
||||||
mapping.get(result.id)!.add(specifier);
|
mapping.get(result.id)!.add(specifier);
|
||||||
} else {
|
} else {
|
||||||
mapping.set(result.id, new Set<string>([specifier]));
|
mapping.set(result.id, new Set<string>([specifier]));
|
||||||
|
@ -52,7 +52,7 @@ export function vitePluginInternals(input: Set<string>, internals: BuildInternal
|
||||||
for (const [, chunk] of Object.entries(bundle)) {
|
for (const [, chunk] of Object.entries(bundle)) {
|
||||||
if (chunk.type === 'chunk' && chunk.facadeModuleId) {
|
if (chunk.type === 'chunk' && chunk.facadeModuleId) {
|
||||||
const specifiers = mapping.get(chunk.facadeModuleId) || new Set([chunk.facadeModuleId]);
|
const specifiers = mapping.get(chunk.facadeModuleId) || new Set([chunk.facadeModuleId]);
|
||||||
for(const specifier of specifiers) {
|
for (const specifier of specifiers) {
|
||||||
internals.entrySpecifierToBundleMap.set(specifier, chunk.fileName);
|
internals.entrySpecifierToBundleMap.set(specifier, chunk.fileName);
|
||||||
}
|
}
|
||||||
} else if (chunk.type === 'chunk') {
|
} else if (chunk.type === 'chunk') {
|
||||||
|
|
Loading…
Reference in a new issue