import TypeA from './A';
import TypeB from './B';
export default {
TypeA,
TypeB
};
My component file
import { TypeA } from './const';
...
I import TypeA just omit index path, it can work well .
But it will throw an error TypeError: Cannot read property 'TypeA' of undefined after i use Rewire plugin, do this plugin can support es6 module import without index path?
How can i do?
I have a folder named
const
, and some files like below.