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

在swc或者ts-loader解析之后不行 #69

Open
Shujunhuai opened this issue Apr 7, 2023 · 2 comments
Open

在swc或者ts-loader解析之后不行 #69

Shujunhuai opened this issue Apr 7, 2023 · 2 comments

Comments

@Shujunhuai
Copy link

// 这是webpack配置里面的
test: /.[jt]sx?$/,
use: [
{
loader: 'babel-loader',
},
{
loader: 'swc-loader',
options: {
parseMap: true,
},
// options: swcConfig(),
},

// 这是babelrc里面的
[
"babel-plugin-react-scoped-css",
{
"include": ".(le|c)ss$"
}
],

// 结果是: css类名加了[data-v-dqw21421], 但是div元素上面没有加

@codezzc
Copy link

codezzc commented Jun 20, 2023

请问下这个问题解决了吗 如果解决了是如何解决的呢

@Shujunhuai
Copy link
Author

这个解决不了,因为这个针对的是css文件,如果是jsx文件的话太灵活了,解析不了

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

2 participants