@@ -703,8 +703,7 @@ function putFunctionDeclsInFront (path, options) {
703703 else declPath . replaceWith ( funcId ) ;
704704 } else if ( parentPath . type === 'ExportNamedDeclaration' ) {
705705 // If the function is exported we change the export declaration into a reference
706- // const parentIndexInBody = scope.node.body.indexOf(parent);
707- parentPath . replaceWith ( t . ExportNamedDeclaration ( null , [ t . ExportSpecifier ( funcId , funcId ) ] , null ) ) ;
706+ parentPath . replaceWith ( t . ExportNamedDeclaration ( null , [ t . ExportSpecifier ( funcId , funcId ) ] , null ) ) ;
708707 } else if ( parentPath . type === 'ExportDefaultDeclaration' ) {
709708 parentPath . replaceWith ( t . ExportDefaultDeclaration ( funcId ) ) ;
710709 }
@@ -845,10 +844,6 @@ function evalCodeTransform (path, state, options) {
845844 } ) ) ;
846845 }
847846
848- // transforming experimental ES features into accepted es6 form...
849- // This can be done by babel...
850- // objectSpreadTransform(path);
851-
852847 // 3. capture top level vars into topLevelVarRecorder "environment"
853848
854849 if ( ! options . topLevelVarRecorder && options . topLevelVarRecorderName ) {
@@ -989,8 +984,7 @@ export function livelyPreTranspile (api, options) {
989984 dontTransform : [
990985 'global' , 'self' ,
991986 '_moduleExport' , '_moduleImport' ,
992- 'localStorage' , // for Firefox, see fetch
993- // doesn't like to be called as a method, i.e. __lvVarRecorder.fetch
987+ 'localStorage' , // for Firefox, doesn't like to be called as a method, same as fetch, i.e. __lvVarRecorder.fetch
994988 module . recorderName , module . sourceAccessorName ,
995989 'prompt' , 'alert' , 'fetch' , 'getComputedStyle'
996990 ] . concat ( query . knownGlobals ) ,
0 commit comments