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

使用了thread-loader后,customName配置项失效 #631

Open
Zex158 opened this issue Jun 30, 2023 · 0 comments
Open

使用了thread-loader后,customName配置项失效 #631

Zex158 opened this issue Jun 30, 2023 · 0 comments

Comments

@Zex158
Copy link

Zex158 commented Jun 30, 2023

使用了thread-loader后,customName配置项失效,去掉thread-loader就能正常使用。

使用webpack构建,相关版本如下:
webpack:4.42.1
thread-loader:3.0.4
babel-plugin-import:1.13.3

配置大致如下:
{ loader: 'thread-loader' }, { loader: 'babel-loader', query: { //... }, plugins: [[ 'import', { library: 'xxx', style: true, customName: function() { //... } } ]] }

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