-
-
Notifications
You must be signed in to change notification settings - Fork 19
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: disallow import chunkname w/ webpack eager mode #100
Conversation
🦋 Changeset detectedLatest commit: 2cbdc61 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
6a20bf7
to
28301db
Compare
28301db
to
dd2929b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #100 +/- ##
==========================================
- Coverage 96.22% 96.14% -0.09%
==========================================
Files 91 91
Lines 4399 4432 +33
Branches 1497 1510 +13
==========================================
+ Hits 4233 4261 +28
- Misses 160 165 +5
Partials 6 6 ☔ View full report in Codecov by Sentry. |
8d746c2
to
e8ef8cb
Compare
e8ef8cb
to
b3068d4
Compare
@@ -69,9 +78,12 @@ | |||
|
|||
const paddedCommentRegex = /^ (\S[\S\s]+\S) $/ | |||
const commentStyleRegex = | |||
/^( ((webpackChunkName: .+)|((webpackPrefetch|webpackPreload): (true|false|-?\d+))|(webpackIgnore: (true|false))|((webpackInclude|webpackExclude): \/.*\/)|(webpackMode: ["'](lazy|lazy-once|eager|weak)["'])|(webpackExports: (["']\w+["']|\[(["']\w+["'], *)+(["']\w+["']*)]))),?)+ $/ | |||
const chunkSubstrFormat = ` webpackChunkName: ["']${webpackChunknameFormat}["'],? ` | |||
/^( (((webpackChunkName|webpackFetchPriority): .+)|((webpackPrefetch|webpackPreload): (true|false|-?\d+))|(webpackIgnore: (true|false))|((webpackInclude|webpackExclude): \/.*\/)|(webpackMode: ["'](lazy|lazy-once|eager|weak)["'])|(webpackExports: (["']\w+["']|\[(["']\w+["'], *)+(["']\w+["']*)]))),?)+ $/ |
Check failure
Code scanning / CodeQL
Inefficient regular expression High
@@ -69,9 +78,12 @@ | |||
|
|||
const paddedCommentRegex = /^ (\S[\S\s]+\S) $/ | |||
const commentStyleRegex = | |||
/^( ((webpackChunkName: .+)|((webpackPrefetch|webpackPreload): (true|false|-?\d+))|(webpackIgnore: (true|false))|((webpackInclude|webpackExclude): \/.*\/)|(webpackMode: ["'](lazy|lazy-once|eager|weak)["'])|(webpackExports: (["']\w+["']|\[(["']\w+["'], *)+(["']\w+["']*)]))),?)+ $/ | |||
const chunkSubstrFormat = ` webpackChunkName: ["']${webpackChunknameFormat}["'],? ` | |||
/^( (((webpackChunkName|webpackFetchPriority): .+)|((webpackPrefetch|webpackPreload): (true|false|-?\d+))|(webpackIgnore: (true|false))|((webpackInclude|webpackExclude): \/.*\/)|(webpackMode: ["'](lazy|lazy-once|eager|weak)["'])|(webpackExports: (["']\w+["']|\[(["']\w+["'], *)+(["']\w+["']*)]))),?)+ $/ |
Check failure
Code scanning / CodeQL
Inefficient regular expression High
b3068d4
to
2cbdc61
Compare
Backport import-js#3004