#Vite replaces string literals with Ascii characters.

1 messages · Page 1 of 1 (latest)

fair musk
#

The original select2 js file contains the following type of characters:
'\u24B6': 'A',
'\uFF21': 'A',
'\u00C0': 'A',

After packaging with Vite, characters are changed. And here I need a solution so that this transformation does not take place:
"Ⓐ": "A",
A: "A",
À: "A",
Which option will disable Unicode character conversion? Or change the processor to use in Vite config.
The current behavior results in an asset loading error inside the Tomcat application.

#

Configuration snippet:
export default defineConfig({
build: {
lib: {
entry: jsFiles,
formats: ['es']
},
sourcemap: true,
cssCodeSplit: true
}
})