mirror of
https://github.com/alex8088/electron-vite.git
synced 2026-07-15 19:51:08 +08:00
Merge 187007b230507e9c07f78208b9ab0e861d3a3e32 into 1eeb15ea770eb7595d1bee3013211f41d2b4104b
This commit is contained in:
commit
f18ddf4bcf
@ -31,7 +31,7 @@ const require = __cjs_mod__.createRequire(import.meta.url);
|
|||||||
`
|
`
|
||||||
|
|
||||||
const ESMStaticImportRe =
|
const ESMStaticImportRe =
|
||||||
/(?<=\s|^|;)import\s*([\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu
|
/(?<=^(|\s|;))import\s*([\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu
|
||||||
|
|
||||||
interface StaticImport {
|
interface StaticImport {
|
||||||
end: number
|
end: number
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user