File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
packages/app/src/sandbox/eval Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ export default class Manager {
610610 return Promise . resolve ( this . transpiledModules [ cachedPath ] . module ) ;
611611 }
612612
613- const measureKey = `resolve-async- ${ path } :${ currentPath } ` ;
613+ const measureKey = `resolve-async: ${ path } :${ currentPath } ` ;
614614 return new Promise ( ( promiseResolve , promiseReject ) => {
615615 measure ( measureKey ) ;
616616 const presetAliasedPath = this . getPresetAliasedPath ( path ) ;
@@ -720,7 +720,7 @@ export default class Manager {
720720 if ( cachedPath && this . transpiledModules [ cachedPath ] ) {
721721 resolvedPath = cachedPath ;
722722 } else {
723- const measureKey = `resolve-sync- ${ path } :${ currentPath } ` ;
723+ const measureKey = `resolve-sync: ${ path } :${ currentPath } ` ;
724724 measure ( measureKey ) ;
725725 const presetAliasedPath = this . getPresetAliasedPath ( path ) ;
726726
Original file line number Diff line number Diff line change @@ -582,8 +582,10 @@ self.addEventListener('message', async event => {
582582 Babel . registerPreset ( 'env' , Babel . availablePresets . latest ) ;
583583 }
584584
585- // Hardcode, since we want to override env
586- Babel . availablePresets . env = envPreset ;
585+ if ( version === 7 ) {
586+ // Hardcode, since we want to override env
587+ Babel . availablePresets . env = envPreset ;
588+ }
587589
588590 if (
589591 ( flattenedPlugins . indexOf ( 'transform-vue-jsx' ) > - 1 ||
You can’t perform that action at this time.
0 commit comments