thread-loader icon indicating copy to clipboard operation
thread-loader copied to clipboard

feat: support function for loader sunch as css-loader #58

Open BUPTlhuanyu opened this issue 3 years ago • 3 comments

This PR contains a:

  • [x] bugfix
  • [ ] new feature
  • [ ] code refactor
  • [ ] test update
  • [ ] typo fix
  • [ ] metadata update

Motivation / Use-Case

#58

function options like getLocalIdent cannot passed to the css-loader,so i need this function without scoped var.

Breaking Changes

Additional Info

BUPTlhuanyu avatar Dec 19 '21 07:12 BUPTlhuanyu

CLA Signed

The committers are authorized under a signed CLA.

  • :white_check_mark: lhuanyu (fd8992a3f85858ec8051a88be9ab5a0e5e7b851b)

Hello, this issue is a common case

BUPTlhuanyu avatar Dec 24 '21 03:12 BUPTlhuanyu

Maybe we should apply this logic for all unknown functions?

The functions with scope vars will case an error, so i take a white list of function-name.

BUPTlhuanyu avatar Dec 25 '21 02:12 BUPTlhuanyu