Skip to content

Commit 62e700d

Browse files
committed
fix(webpack): expand dynamic require regexp to match new pattern
1 parent bd2114a commit 62e700d

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/webpack/src/nitro/plugins/dynamic-require.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { importModule } from '@nuxt/kit'
66

77
const PLUGIN_NAME = 'dynamic-require'
88
const HELPER_DYNAMIC = `\0${PLUGIN_NAME}.mjs`
9-
const DYNAMIC_REQUIRE_RE = /import\("\.\/" ?\+(.*)\).then/g
9+
const DYNAMIC_REQUIRE_RE = /import\((?:.*\+\s*)?"\.\/" ?\+(.*)\).then/g
1010
const BACKWARD_SLASH_RE = /\\/g
1111

1212
interface Options {

renovate.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222
"/^@vitest//"
2323
]
2424
},
25-
{
26-
"groupName": "webpack",
27-
"matchPackageNames": [
28-
"webpack"
29-
]
30-
},
3125
{
3226
"matchBaseBranches": [
3327
"main",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy