fix: esbuild.charset not work with css plugin.#12993
fix: esbuild.charset not work with css plugin.#12993NicoKam wants to merge 1 commit intovitejs:mainfrom
esbuild.charset not work with css plugin.#12993Conversation
|
|
|
@patak-dev @bluwy CI progress has hung up. Need helps. |
sapphi-red
left a comment
There was a problem hiding this comment.
Would you move the code inside resolveEsbuildMinifyOptions?
Sorry, I don't intend to put this code in Additionally, If there are more places in the future that need to use options related to both |
|
I should have put #9210 in If we put |
I understand. I was going to ask you to fix it. Maybe you can rename |
Description
Vite@4 has set the default config
esbuild.charsettoutf8, and in #12565 , the default configuration forplugin:csshas also been set toutf8This operation may lead to the generation of iconfont files being escaped, causing display errors in some cases. Although I can modify the
esbuild.charsetinvite.config.ts, it seems that the parameter is not passed to theplugin:css. I need to make it work.Additional context
This is the effect of using iconfont(css) after Vite 4.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).