Skip to content

Commit 7401372

Browse files
linushamerryman
authored andcommitted
🔁: remove developing time comments
1 parent 2a98858 commit 7401372

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lively.source-transform/babel/plugin.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)