-
Notifications
You must be signed in to change notification settings - Fork 472
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
feat: support magical comment import(/* webpackChunkName: "d" */ "./d")
#2686
Conversation
|
import(/* webpackChunkName: "d" */ "./d")
I would have use a more complex Regex
(2nd group has to be used, 1st one is for quotes)
|
That looks wonderful. Would you like to open a PR for it? I have identified the code that needs to change in #2688. |
I actually don't know Rust, I'm a TS developer... By looking at the code, I think I could guess where to edit the regex and match group to select, but I tried to fork the repository, and open the devcontainer, but the dev environment doesn't seem to work (pnpm init doesn't work (pnpm/pnpm#5803), and tsc has an issue too... I could commit the code this way, but I'm not able to test it... Would you mind to open a PR? |
I don't mind at all. Does it block your use cases on Rspack? If it does, I'll happy to open a PR to fix it now. If it doesn't, I would keep #2688 open, which is created as a good first issue on purpose. |
It's not blocking for my use case, it's just the first thing I tested when I saw your PR merged in 0.1.7.... ;-) |
Summary
Related issue (if exists)
Closes #2385
Types of changes
Checklist
pnpm run changeset
.