fix(static-module-record): Account for unlocated nodes in displayAsExport
MODIFY
packages/static-module-record/src/babelPlugin.js
packages/static-module-record/src/babelPlugin.js
@@ -48,7 +48,9 @@ const prependReplacements = (replacements, node) => {
};
const displayAsExport = node => {
+ if (node.loc) {
node.loc.prependText = '/*EX*/ ';
+ }
return node;
};

fix(static-module-record): Account for unlocated nodes in displayAsExport