-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for nested exposures #4
Comments
@DenisKent right, it doesn't expect to have a path as the |
Thanks @ruanyl . Happy to work on it myself too btw. One thing that makes me hesitate is that I've not found a good way of testing updated code in action. Do you know how one might test a new branch of a webpack loader on a webpack config? |
I faced a similar problem but the resolution is quite simple, actually. exposes: {
"./components/Button": "./src/Button.tsx", // which exports ./src/components/Button/Button.tsx
"./components/Input": "./src/Input.tsx", // which exports ./src/components/Input/Input.tsx
"./utils/time": "./src/time.tsx" // which exports ./src/utils/time.tsx
} Hope it helps. |
@DenisKent @fabiomilheiro Thanks for bringing this up, this is now supported in |
Hey, I would like to my MF exposes object to look like:
It doesn't work as expected, no files are created. When I run a build, I get the following message:
ENOENT: no such file or directory, open 'lib\dist\lib\components\Button.d.ts'
. It looks to be caused byfs.writeFileSync
because the \lib\components directory does not exist.dts-loader/src/index.ts
Lines 117 to 130 in 621492b
The text was updated successfully, but these errors were encountered: