We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fa7342 commit 3a58565Copy full SHA for 3a58565
1 file changed
build.mjs
@@ -12,7 +12,7 @@ function patchRecast() {
12
// https://github.com/benjamn/recast/issues/611
13
name: 'patch-recast',
14
setup(build) {
15
- build.onLoad({ filter: /recast\/lib\/patcher\.js$/ }, async (args) => {
+ build.onLoad({ filter: /recast[\/\\]lib[\/\\]patcher\.js$/ }, async (args) => {
16
let original = await fs.promises.readFile(args.path, 'utf8')
17
18
return {
@@ -39,7 +39,7 @@ function patchJiti() {
39
name: 'patch-jiti',
40
41
// TODO: Switch to rolldown and see if we can chunk split this instead?
42
- build.onLoad({ filter: /jiti\/lib\/jiti\.mjs$/ }, async (args) => {
+ build.onLoad({ filter: /jiti[\/\\]lib[\/\\]jiti\.mjs$/ }, async (args) => {
43
44
45
0 commit comments