Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): Vue SFC style binding failure #12799

Merged
merged 3 commits into from
Apr 20, 2024
Merged

fix(cli): Vue SFC style binding failure #12799

merged 3 commits into from
Apr 20, 2024

Conversation

zoy-l
Copy link
Contributor

@zoy-l zoy-l commented Apr 18, 2024

Fix: #12797

应该始终坚持使用 compileScript, 顺便添加 scopeId支持

@zoy-l zoy-l changed the title fix: style binding failure fix(cli): style binding failure Apr 18, 2024
@chenjiahan
Copy link
Member

Thanks! I will review the PR in this weekend.

@zoy-l
Copy link
Contributor Author

zoy-l commented Apr 19, 2024

Here's a question,I'm not quite clear why we generate the style file first before conversion. compileStyle supports passing type PreprocessLang = 'less' | 'sass' | 'scss' | 'styl' | 'stylus'for direct compilation. Is there something I'm missing?

@chenjiahan
Copy link
Member

That's because Vant CLI also supports compiling standalone style files, and we reused the logic when compiling .vue files.

I think it's fine to pass the PreprocessLang option to the compileStyle method.

Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍🏻 I will release a new version soon

@chenjiahan chenjiahan changed the title fix(cli): style binding failure fix(cli): Vue SFC style binding failure Apr 20, 2024
@chenjiahan chenjiahan merged commit d7956ab into youzan:main Apr 20, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report]vant-cli 打包没进行转换 css v-bind
2 participants