Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Jonathan Neal
a82ccc22df Add document to global 2021-12-22 23:34:35 -05:00
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ export interface BuildOptions {
export default async function build(config: AstroConfig, options: BuildOptions = { logging: defaultLogOptions }): Promise<void> {
// polyfill WebAPIs to globalThis for Node v12, Node v14, and Node v16
polyfill(globalThis, {
exclude: 'window document',
exclude: 'window',
});
const builder = new AstroBuilder(config, options);

View file

@ -38,7 +38,7 @@ export interface DevServer {
export default async function dev(config: AstroConfig, options: DevOptions = { logging: defaultLogOptions }): Promise<DevServer> {
// polyfill WebAPIs to globalThis for Node v12, Node v14, and Node v16
polyfill(globalThis, {
exclude: 'window document',
exclude: 'window',
});
// start dev server