diff --git a/.changeset/lovely-lies-hide.md b/.changeset/lovely-lies-hide.md new file mode 100644 index 000000000..2bcb428a0 --- /dev/null +++ b/.changeset/lovely-lies-hide.md @@ -0,0 +1,5 @@ +--- +'@vanilla-extract/integration': patch +--- + +Use correct async Babel transform method in integration transform diff --git a/packages/integration/src/transform.ts b/packages/integration/src/transform.ts index ac5fa2280..88fe1e814 100644 --- a/packages/integration/src/transform.ts +++ b/packages/integration/src/transform.ts @@ -55,7 +55,7 @@ export const transform = async ({ let code = source; if (identOption === 'debug') { - const result = await babel.transform(source, { + const result = await babel.transformAsync(source, { filename: filePath, cwd: rootPath, plugins: [vanillaBabelPlugin, typescriptSyntax],