We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9ca883 commit 6b0a42aCopy full SHA for 6b0a42a
1 file changed
packages/cli/src/pack-bin.ts
@@ -37,7 +37,9 @@ function externalDtsTypeOnlyPlugin() {
37
name: 'vite-plus:external-dts-type-only',
38
transform: {
39
filter: { id: { include: [EXTERNAL_DTS_FIX_RE] } },
40
- handler(code: string, id: string) {
+ handler(code: string, rawId: string) {
41
+ // Normalize Windows backslash paths to forward slashes for regex matching
42
+ const id = rawId.replaceAll('\\', '/');
43
if (EXTERNAL_DTS_INTERNAL_RE.test(id)) {
44
// postcss/lightningcss internal files: transform imports only
45
// (exports may include value re-exports like `export const Features`)
0 commit comments