Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jul 3, 2023
1 parent aab0759 commit b712a2f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-astro-server/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function handleRequest(

// This could be a runtime error from Vite's SSR module, so try to fix it here
try {
env.loader.fixStacktrace(err );
env.loader.fixStacktrace(err);
} catch {}

// This is our last line of defense regarding errors where we still might have some information about the request
Expand Down
4 changes: 2 additions & 2 deletions packages/integrations/image/src/vendor/squoosh/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function resize({ image, width, height }: ResizeOpts) {
const p = preprocessors['resize']
const m = await p.instantiate()
await maybeDelay()
return m(image.data, image.width, image.height, {
return await m(image.data, image.width, image.height, {
...p.defaultOptions,
width,
height,
Expand All @@ -82,7 +82,7 @@ export async function encodeJpeg(
const m = await e.enc()
await maybeDelay()
const quality = opts.quality || e.defaultEncoderOptions.quality
const r = m.encode(image.data, image.width, image.height, {
const r = await m.encode(image.data, image.width, image.height, {
...e.defaultEncoderOptions,
quality,
})
Expand Down
1 change: 0 additions & 1 deletion packages/integrations/markdoc/src/content-entry-type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import type { Config as MarkdocConfig, Node } from '@markdoc/markdoc';
import Markdoc from '@markdoc/markdoc';
import type { AstroConfig, ContentEntryType } from 'astro';
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/mdx/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function recmaInjectImportMetaEnvPlugin({
estreeVisit(tree, (node) => {
if (node.type === 'MemberExpression') {
// attempt to get "import.meta.env" variable name
const envVarName = getImportMetaEnvVariableName(node );
const envVarName = getImportMetaEnvVariableName(node);
if (typeof envVarName === 'string') {
// clear object keys to replace with envVarLiteral
for (const key in node) {
Expand Down

0 comments on commit b712a2f

Please sign in to comment.