Skip to content

Commit 0793f2b

Browse files
author
Ives van Hoorne
committed
Add some checks
1 parent 078b541 commit 0793f2b

File tree

1 file changed

+2
-0
lines changed
  • packages/app/src/sandbox/eval/transpilers/babel

1 file changed

+2
-0
lines changed

packages/app/src/sandbox/eval/transpilers/babel/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class BabelTranspiler extends WorkerTranspiler {
4545
const babelConfig = getBabelConfig(foundConfig, loaderOptions, path);
4646

4747
const isV7 = !!(
48+
configs.package &&
49+
configs.package.parsed &&
4850
configs.package.parsed.devDependencies &&
4951
configs.package.parsed.devDependencies['@vue/cli-plugin-babel']
5052
);

0 commit comments

Comments
 (0)