vite-plugins icon indicating copy to clipboard operation
vite-plugins copied to clipboard

Update lib.ts to support exports that start with `$` and `_`

Open nicksrandall opened this issue 2 years ago • 1 comments

This will detect exports that start with $ and _.

Here is a snippet from @lexical/html that was causing an issue for me:

exports.$generateHtmlFromNodes = $generateHtmlFromNodes;
exports.$generateNodesFromDOM = $generateNodesFromDOM;

The updated regex will correctly identify this module as common-js.

nicksrandall avatar Dec 19 '23 20:12 nicksrandall

Anything I can do to help this get merged?

nicksrandall avatar Jan 16 '24 16:01 nicksrandall