output.charset

  • Type: 'ascii' | 'utf8'
  • Default: 'ascii'

By default, Rsbuild's output is ASCII-only and will escape all non-ASCII characters.

If you want to output the original characters without using escape sequences, you can set output.charset to utf8.

export default {
  output: {
    charset: 'utf8',
  },
};