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: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
export default defineConfig({
tools: {
rspack: {
node: {
__dirname: true,
},
},
},
}); |
Beta Was this translation helpful? Give feedback.
-
|
That did the trick, thanks! 🙌 |
Beta Was this translation helpful? Give feedback.

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