-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
linaria 生成的标签 模板字符串使用props 无效 #8152
Comments
taro-bot2
bot
added
F-react
Framework - React
T-h5
Target - 编译到 H5
V-3
Version - 3.x
labels
Nov 30, 2020
加油大佬们,解决好Q一下 |
文档中的配置只配置了 config = {
// ...
h5: {
webpackChain(chain, webpack) {
// linaria/loader 选项详见 https://github.com/callstack/linaria/blob/master/docs/BUNDLERS_INTEGRATION.md#webpack
chain.module
.rule('script')
.use('linariaLoader')
.loader('linaria/loader')
.options({
sourceMap: process.env.NODE_ENV !== 'production',
})
}
}
} |
已配置 但是h5并未生效 |
@lzhlo 升级到最新版再试试咯,我这边 ok |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: 84.0.4147.89
使用框架: React
复现步骤
const Title = styled(Button)
color: ${props => props.color};
期望结果
能够修改color
实际结果
实际编译成 color: var(--t18dh6sw-0);
环境信息
补充信息
啊
The text was updated successfully, but these errors were encountered: