How to ignore specific build warnings in Rsbuild #6748
|
After updating I have temporarily locked Therefore, there are now two issues:
rsbuild.config.ts import { defineConfig } from "@rsbuild/core";
import { pluginVue2 } from "@rsbuild/plugin-vue2";
// Docs: https://rsbuild.rs/config/
export default defineConfig({
plugins: [pluginVue2()],
tools: {
rspack: {
ignoreWarnings: [/parser_helper_x\.js/],
// ignoreWarnings: [(warning) => false],
},
},
});repo: https://github.com/curlykay/issue-rabuild-ignore-warnings System: |
Replies: 2 comments
export default defineConfig({
tools: {
rspack: {
node: {
__dirname: true,
},
},
},
}); |
|
That did the trick, thanks! 🙌 |

node.__dirnameoption to disable the warning:Ref: https://rspack.rs/config/node#node__dirname