diff options
author | 2023-02-07 21:26:18 +0000 | |
---|---|---|
committer | 2023-02-07 21:26:18 +0000 | |
commit | d7948fa3e6b23933547b733ec34d826b6b6b0c74 (patch) | |
tree | fceed7b7b77d93285f6dda9adbade851747eb9b8 | |
parent | c0e4b1df9fc2279a15eadb8aaa95efdc1c6e9cbf (diff) | |
download | astro-d7948fa3e6b23933547b733ec34d826b6b6b0c74.tar.gz astro-d7948fa3e6b23933547b733ec34d826b6b6b0c74.tar.zst astro-d7948fa3e6b23933547b733ec34d826b6b6b0c74.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/build/plugins/plugin-internals.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/core/build/plugins/plugin-internals.ts b/packages/astro/src/core/build/plugins/plugin-internals.ts index c06018221..1ea61a97a 100644 --- a/packages/astro/src/core/build/plugins/plugin-internals.ts +++ b/packages/astro/src/core/build/plugins/plugin-internals.ts @@ -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])); @@ -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') { |