如果用作类扩展器并在扩展器类之上导入,则重新导出es6类模块不起作用

时间:2018-12-28 07:48:02

标签: reactjs react-native

这是我的示例代码https://codesandbox.io/s/km5n6o757v

redirect.js


// not working
export { default as Bar } from "./subredirect";
export { default as Masmun } from "./othersubredirect";
export { default as Foo } from "./source";


// working
export { default as Foo } from "./source";
export { default as Bar } from "./subredirect";
export { default as Masmun } from "./othersubredirect";

那里实际发生了什么?

0 个答案:

没有答案