Skip to content

Commit 0a7c753

Browse files
renovate[bot]bluwy
andauthored
chore(deps): update dependency eslint-plugin-regexp to v2 (#14730)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <[email protected]>
1 parent 9babef5 commit 0a7c753

File tree

4 files changed

+40
-52
lines changed

4 files changed

+40
-52
lines changed

.eslintrc.cjs

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ module.exports = defineConfig({
108108
],
109109

110110
'regexp/no-contradiction-with-assertion': 'error',
111+
// in some cases using explicit letter-casing is more performant than the `i` flag
112+
'regexp/use-ignore-case': 'off',
111113
},
112114
overrides: [
113115
{

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"eslint-define-config": "^1.24.1",
6868
"eslint-plugin-import": "^2.28.1",
6969
"eslint-plugin-n": "^16.2.0",
70-
"eslint-plugin-regexp": "^1.15.0",
70+
"eslint-plugin-regexp": "^2.1.1",
7171
"execa": "^8.0.1",
7272
"fs-extra": "^11.1.1",
7373
"lint-staged": "^15.0.1",

packages/plugin-legacy/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
344344
fileName = fileName.replace(/[.-]?\[hash\]/, '-legacy$&')
345345
} else {
346346
// entry.js -> entry-legacy.js
347-
fileName = fileName.replace(/(.+)\.(.+)/, '$1-legacy.$2')
347+
// entry.min.js -> entry-legacy.min.js
348+
fileName = fileName.replace(/(.+?)\.(.+)/, '$1-legacy.$2')
348349
}
349350

350351
return fileName

pnpm-lock.yaml

+35-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)