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 cdef6ae commit 9bad5dcCopy full SHA for 9bad5dc
src/index.ts
@@ -23,9 +23,9 @@ export const pluginConsoleDebug = (): RsbuildPlugin => {
23
24
api.modifyBundlerChain(async (chain, utils) => {
25
chain.module
26
- .rule(utils.CHAIN_ID.RULE.JS)
27
- .test(/\.(j|t)sx?$/)
28
- .use(utils.CHAIN_ID.USE.TS)
+ .rule(utils.CHAIN_ID.RULE.TS)
+ .test(/\.(tsx|ts)$/i)
+ .use(utils.CHAIN_ID.RULE.TS)
29
.loader(resolvePackage('./core/applyConsoleDebug.js', __dirname))
30
.options({
31
port,
0 commit comments