Skip to content

Commit 6202615

Browse files
pigozmikearnaldi
authored andcommitted
fix missing regexp escapes
1 parent 435c799 commit 6202615

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/rare-donuts-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/remix-plugin": patch
3+
---
4+
5+
fix missing regexp escapes

src/plugins/effect.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const effectPlugin = (): esbuild.Plugin => {
156156
if (!services) {
157157
services = init()
158158
}
159-
build.onLoad({ filter: /(.ts|.tsx|.tsx?browser)$/ }, (args: any) => {
159+
build.onLoad({ filter: /(\.ts|\.tsx|\.tsx?browser)$/ }, (args: any) => {
160160
const cached = fromCache(args.path)
161161
if (cached) {
162162
return {
@@ -181,7 +181,7 @@ export const effectPlugin = (): esbuild.Plugin => {
181181
if (!services) {
182182
services = init()
183183
}
184-
build.onLoad({ filter: /(.ts|.tsx|.tsx?browser)$/ }, (args: any) => {
184+
build.onLoad({ filter: /(\.ts|\.tsx|\.tsx?browser)$/ }, (args: any) => {
185185
const cached = fromCache(args.path)
186186
if (cached) {
187187
return {
@@ -195,7 +195,7 @@ export const effectPlugin = (): esbuild.Plugin => {
195195
}
196196
})
197197
} else if (useBabel) {
198-
build.onLoad({ filter: /(.ts|.tsx|.tsx?browser)$/ }, (args: any) => {
198+
build.onLoad({ filter: /(\.ts|\.tsx|\.tsx?browser)$/ }, (args: any) => {
199199
const cached = fromCache(args.path)
200200
if (cached) {
201201
return {

0 commit comments

Comments
 (0)