From 795a21204ef22a8893d78adf6c7853ae4de03ac8 Mon Sep 17 00:00:00 2001 From: pimlie Date: Sun, 9 May 2021 16:44:18 +0200 Subject: [PATCH] fix: spread when pushing babel plugins from transformOptions --- src/babel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babel.ts b/src/babel.ts index 17d7cc95..a508c2db 100644 --- a/src/babel.ts +++ b/src/babel.ts @@ -31,7 +31,7 @@ export default function transform (opts: TransformOptions): TRANSFORM_RESULT { } if (opts.babel && Array.isArray(opts.babel.plugins)) { - _opts.plugins?.push(opts.babel.plugins) + _opts.plugins?.push(...opts.babel.plugins) } try {