From 12d7b54b78cc0b7ef8f1c577f93c318ca0b2edc8 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Tue, 29 Jun 2021 16:00:51 +0800 Subject: [PATCH] fix: should ignore user provided babel configs --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 734d8b5..c9f525c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -53,6 +53,8 @@ function transformCode(this: TransformPluginContext, srcCode: string, id: string sourceMaps: true, comments: true, compact: true, + babelrc: false, + configFile: false, parserOpts: { allowReturnOutsideFunction: true, sourceType: 'module',