-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Equivalent of 'expose-loader' #5479
Comments
have you checked whether it is working in Rspack? |
It does not work with Rspack. For example: { test: /lodash\.js/, loader: 'expose-loader', options: { exposes: [{ globalName: ['_', 'lodash'], moduleLocalName: 'lodash' }] } },
{ test: /moment\.js$/, loader: 'expose-loader', options: { exposes: { globalName: 'moment', override: true } } }, results in errors:
There are 2 additional loaders that might be "connected": |
I was searching github for issues related to it says:
This project has multiple entries, not sure if it is related. |
Rspack does not support |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
So is there no alternative for expose-loader? If there is, can the documentation be updated to show how to migrate? |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
bump |
I believe it's fixed.
|
What problem does this feature solve?
Hi, is there an equivalent of webpack 'expose-loader'?
What does the proposed API of configuration look like?
The text was updated successfully, but these errors were encountered: