Skip to content

Commit 3a58565

Browse files
committed
Fix building on windows
1 parent 9fa7342 commit 3a58565

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function patchRecast() {
1212
// https://github.com/benjamn/recast/issues/611
1313
name: 'patch-recast',
1414
setup(build) {
15-
build.onLoad({ filter: /recast\/lib\/patcher\.js$/ }, async (args) => {
15+
build.onLoad({ filter: /recast[\/\\]lib[\/\\]patcher\.js$/ }, async (args) => {
1616
let original = await fs.promises.readFile(args.path, 'utf8')
1717

1818
return {
@@ -39,7 +39,7 @@ function patchJiti() {
3939
name: 'patch-jiti',
4040
setup(build) {
4141
// TODO: Switch to rolldown and see if we can chunk split this instead?
42-
build.onLoad({ filter: /jiti\/lib\/jiti\.mjs$/ }, async (args) => {
42+
build.onLoad({ filter: /jiti[\/\\]lib[\/\\]jiti\.mjs$/ }, async (args) => {
4343
let original = await fs.promises.readFile(args.path, 'utf8')
4444

4545
return {

0 commit comments

Comments
 (0)