underfin / vite-plugin-vue2

Vue2 plugin for Vite
621 stars 84 forks source link

chore: add vueTemplateOptions.compilerOptions.whitespace default val… #144

Closed 869288142 closed 3 years ago

869288142 commented 3 years ago

vueTemplateOptions.compilerOptions.whitespace default value is condense, , it will produce minor visual layout differences compared to plain HTML in certain cases. we may be show behavior to user

Does this PR introduce a breaking change? (check one)

antfu commented 3 years ago

Isn't this the default behaviour of Vue?

869288142 commented 3 years ago

Isn't this the default behaviour of Vue?

vue default value is { whitespace: 'preserve' }, it will keep whitespace. vite-plugin-vue2 compilerOption is { whitespace: 'codeense' }. when i use vite-plugin-vue2 in my company, I found it.

underfin commented 3 years ago

This behavior is same as vue-cli. You can see here https://github.com/underfin/vite-plugin-vue2/pull/62.

869288142 commented 3 years ago

This behavior is same as vue-cli. You can see here #62.

Thank you for your reply. The information is important to user who project is not use vue-cli migrate to vite-plugin-vue2