Make the package work with moduleResolution: bundler #14

Closed
BartoszWrobel591 wants to merge 3 commits from patch-1 into main
BartoszWrobel591 commented 2025-09-23 10:53:15 +02:00 (Migrated from github.com)

Hi,

It would be great to support projects that use moduleResolution: "bundler" in tsconfig.json, similar to other packages (e.g., @lezer/rust).

Hi, It would be great to support projects that use moduleResolution: "bundler" in tsconfig.json, similar to other packages (e.g., @lezer/rust).
marijnh commented 2025-09-23 11:29:13 +02:00 (Migrated from github.com)

Seems this package somehow got missed when I fixed this in the other parser packages. I don't think your patch will solve it though—TypeScript actually insists on there being a .d.cts file that matches the .cjs one. Attached patch adds this.

Seems this package somehow got missed when I fixed this in the other parser packages. I don't think your patch will solve it though—TypeScript actually insists on there being a .d.cts file that matches the .cjs one. Attached patch adds this.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/php!14
No description provided.