babel-plugin-import icon indicating copy to clipboard operation
babel-plugin-import copied to clipboard

[Help] ReferenceError When Use `Lodash` Placeholder

Open xyy94813 opened this issue 4 years ago • 0 comments

ReferenceError When Use Lodash Placeholder.

Lodash support use _ as Placeholder in _.curry and other funcs.

This is a test case:

function abc(x, y, z) {
  return [x, y, z];
}

_.curry(abc)(1, _, 3)(2);

The test case work well in runkit, but it does not work when used with babel-plugin-import. Is there any solution fix it?

xyy94813 avatar Apr 09 '20 08:04 xyy94813