es6-module default export importing as undefined
问题 I'm not sure what I'm missing here. I'm working on a project using jspm and es6-module-loader. I've got an module defined as follows: import hooks from './hooks'; import api from './api'; import tools from './tools'; const StencilUtils = { hooks: hooks, api: api, tools: tools, }; export {hooks, api, tools}; export default StencilUtils; /* global define */ (function(root) { if (typeof define === 'function' && define.amd) { define(function() { return (root.stencilUtils = StencilUtils); }); }