Open dundalek opened 7 years ago
Hi, this is an interesting approach. Do you think it would be somehow possible to hack webpack to load directories without the extra config file?
As an example let's say we have:
. ├── submodule │ ├── a.js │ └── b.js | └── entry.js
From entry.js I would like to do:
entry.js
import { a, b } from 'dir!./submodule';
Instead of regular:
import a from './submodule/a'; import b from './submodule/b';
Hi, this is an interesting approach. Do you think it would be somehow possible to hack webpack to load directories without the extra config file?
As an example let's say we have:
From
entry.js
I would like to do:Instead of regular: