Skip to content
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 resolve.alias for webpack #96

Closed
mizdra opened this issue Sep 3, 2022 · 2 comments · Fixed by #145
Closed

Support resolve.alias for webpack #96

mizdra opened this issue Sep 3, 2022 · 2 comments · Fixed by #145
Labels
Priority: High Status: PR Welcome Welcome to Pull Request Type: Add Add new features.
Milestone

Comments

@mizdra
Copy link
Owner

mizdra commented Sep 3, 2022

ref: https://webpack.js.org/configuration/resolve/#resolvealias

  • First, we will implement it for Node.js API users.
  • To implement for CLI users, we must consider how to interface.
@mizdra mizdra added the Type: Add Add new features. label Sep 3, 2022
@mizdra mizdra changed the title Support resolve.alias of webpack Support resolve.alias for webpack Sep 3, 2022
@mizdra mizdra added this to the v0.2.0 milestone Sep 4, 2022
@mizdra mizdra added the Status: PR Welcome Welcome to Pull Request label Sep 4, 2022
@mizdra
Copy link
Owner Author

mizdra commented Sep 22, 2022

If you are using webpack.config.js wrapped with tools such as create-react-app or next.js, I have found that approaches like #96 (comment) don't work.

Perhaps an interface like --webpack-resolve-alias='{"util": "src/util"}' would be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Status: PR Welcome Welcome to Pull Request Type: Add Add new features.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant