Skip to content

对于<include和<import中使用的模板和类名处理异常 #2

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

Open
dhlolo opened this issue Nov 16, 2022 · 0 comments
Open

对于<include和<import中使用的模板和类名处理异常 #2

dhlolo opened this issue Nov 16, 2022 · 0 comments

Comments

@dhlolo
Copy link

dhlolo commented Nov 16, 2022

对于编译时,npm run build:module
代码示例,可以看到对于<include和<import的部分,对应类名是没有处理的。

看了下代码逻辑,貌似只处理了有同目录下有js的情况(page, component, app),但是对于template类的情况并没有处理

类似的对于wxss中@import会提示 wxml替换发现未匹配cssMap的类名:...,实际会保留原有类名,相当于类名未进行压缩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant