Skip to content

Commit

Permalink
fix(container): apply polyfill (#12042)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Sep 20, 2024
1 parent dda7822 commit 243ecb6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-queens-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes a problem in the Container API, where a polyfill wasn't correctly applied. This caused an issue in some environments where `crypto` isn't supported.
1 change: 1 addition & 0 deletions packages/astro/src/container/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './polyfill.js';
import { posix } from 'node:path';
import type {
AstroConfig,
Expand Down
3 changes: 3 additions & 0 deletions packages/astro/src/container/polyfill.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { applyPolyfills } from '../core/app/node.js';

applyPolyfills();

0 comments on commit 243ecb6

Please sign in to comment.