mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
fix(container): apply polyfill (#12042)
This commit is contained in:
parent
dda78222c3
commit
243ecb6d61
3 changed files with 9 additions and 0 deletions
5
.changeset/fast-queens-try.md
Normal file
5
.changeset/fast-queens-try.md
Normal file
|
@ -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,3 +1,4 @@
|
|||
import './polyfill.js';
|
||||
import { posix } from 'node:path';
|
||||
import type {
|
||||
AstroConfig,
|
||||
|
|
3
packages/astro/src/container/polyfill.ts
Normal file
3
packages/astro/src/container/polyfill.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { applyPolyfills } from '../core/app/node.js';
|
||||
|
||||
applyPolyfills();
|
Loading…
Add table
Reference in a new issue