Skip to content

Commit

Permalink
fix: spread when pushing babel plugins from transformOptions (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
pimlie committed May 10, 2021
1 parent fc5df8d commit f25960a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/babel.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit f25960a

Please sign in to comment.