summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-09-28 16:23:05 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-09-28 16:23:05 +0000
commit3c93476078f119ab5b2746ae4a09f3caf5297363 (patch)
treeae413e34b0a411724f2a169928ae22a4e5a268e1
parent824dd4670a145c47337eff84a5ae412bf7443117 (diff)
downloadastro-3c93476078f119ab5b2746ae4a09f3caf5297363.tar.gz
astro-3c93476078f119ab5b2746ae4a09f3caf5297363.tar.zst
astro-3c93476078f119ab5b2746ae4a09f3caf5297363.zip
[ci] format
-rw-r--r--packages/astro/src/core/build/static-build.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts
index 38bedb469..016e24541 100644
--- a/packages/astro/src/core/build/static-build.ts
+++ b/packages/astro/src/core/build/static-build.ts
@@ -189,8 +189,8 @@ async function ssrBuild(
// Detect if the chunk name has as % sign that is not encoded.
// This is borrowed from Node core: https://github.com/nodejs/node/blob/3838b579e44bf0c2db43171c3ce0da51eb6b05d5/lib/internal/url.js#L1382-L1391
// We do this because you cannot import a module with this character in it.
- for(let i = 0; i < name.length; i++) {
- if(name[i] === '%') {
+ for (let i = 0; i < name.length; i++) {
+ if (name[i] === '%') {
const third = name.codePointAt(i + 2)! | 0x20;
if (name[i + 1] !== '2' || third !== 102) {
return `chunks/${name.replace(/%/g, '_percent_')}_[hash].mjs`;