Skip to content

Commit 9bad5dc

Browse files
committed
chore: update rule
1 parent cdef6ae commit 9bad5dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export const pluginConsoleDebug = (): RsbuildPlugin => {
2323

2424
api.modifyBundlerChain(async (chain, utils) => {
2525
chain.module
26-
.rule(utils.CHAIN_ID.RULE.JS)
27-
.test(/\.(j|t)sx?$/)
28-
.use(utils.CHAIN_ID.USE.TS)
26+
.rule(utils.CHAIN_ID.RULE.TS)
27+
.test(/\.(tsx|ts)$/i)
28+
.use(utils.CHAIN_ID.RULE.TS)
2929
.loader(resolvePackage('./core/applyConsoleDebug.js', __dirname))
3030
.options({
3131
port,

0 commit comments

Comments
 (0)