Skip to content

Commit

Permalink
fix: remove ExportNamedDeclaration when the specifier is empty (#10638)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored and nicolo-ribaudo committed Nov 4, 2019
1 parent d023e10 commit 5e24016
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-plugin-transform-modules-systemjs/src/index.js
Expand Up @@ -413,6 +413,8 @@ export default declare((api, options) => {

path.replaceWithMultiple(nodes);
}
} else {
path.remove();
}
}
}
Expand Down
@@ -0,0 +1 @@
export {}
@@ -0,0 +1,8 @@
System.register([], function (_export, _context) {
"use strict";

return {
setters: [],
execute: function () {}
};
});

0 comments on commit 5e24016

Please sign in to comment.