Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Feb 7, 2023
1 parent c0e4b1d commit d7948fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/core/build/plugins/plugin-internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function vitePluginInternals(input: Set<string>, internals: BuildInternal
promises.push(
this.resolve(specifier).then((result) => {
if (result) {
if(mapping.has(result.id)) {
if (mapping.has(result.id)) {
mapping.get(result.id)!.add(specifier);
} else {
mapping.set(result.id, new Set<string>([specifier]));
Expand All @@ -52,7 +52,7 @@ export function vitePluginInternals(input: Set<string>, internals: BuildInternal
for (const [, chunk] of Object.entries(bundle)) {
if (chunk.type === 'chunk' && 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);
}
} else if (chunk.type === 'chunk') {
Expand Down

0 comments on commit d7948fa

Please sign in to comment.