File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
packages/app/src/sandbox/eval/transpilers/babel Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,11 @@ class BabelTranspiler extends WorkerTranspiler {
4141 this . config || { }
4242 ) ;
4343
44- if ( loaderContext . options . configurations . babel ) {
44+ if (
45+ loaderContext . options . configurations &&
46+ loaderContext . options . configurations . babel &&
47+ loaderContext . options . configurations . babel . parsed
48+ ) {
4549 babelConfig = loaderContext . options . configurations . babel . parsed ;
4650 }
4751
@@ -50,7 +54,10 @@ class BabelTranspiler extends WorkerTranspiler {
5054 code,
5155 config : babelConfig ,
5256 path,
53- sandboxOptions : loaderContext . options . configurations . sandbox . parsed ,
57+ sandboxOptions :
58+ loaderContext . options . configurations &&
59+ loaderContext . options . configurations . sandbox &&
60+ loaderContext . options . configurations . sandbox . parsed ,
5461 } ,
5562 loaderContext ,
5663 ( err , data ) => {
You can’t perform that action at this time.
0 commit comments