-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
[Bug]: Incorrect parsing of webpackInclude
#7356
Comments
Yes, this is an known issue. Webpack uses You can just avoid to use |
Good that you're aware, we'll work around the limitation. FWIW it seems to me that Webpack parses those comments like JSON |
System Info
Details
rspack
PR #7055 added support for some Webpack "magic comments", but but
webpackInclude
is incorrect:/* webpackInclude: /^.{2,}$/ */
Results in an error which seem to suggest the regex has been incorrectly extracted:
Looking at the PR it seems the extraction logic stops at
,
: https://github.com/web-infra-dev/rspack/pull/7055/files#diff-d53d879b548a6442e88215394f482df179f48e7f98e20f401f84051fef5bd63cR132Reproduce link
N/A
Reproduce Steps
N/A
The text was updated successfully, but these errors were encountered: