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

config some package require default or require all exports

Open ttshangxiang opened this issue 3 years ago • 1 comments

in webpack's cjs bundle, has some package need require default, others need require all exports, can I config which need default and which need all exports?

ttshangxiang avatar Jul 28 '22 04:07 ttshangxiang

react-draggable Try to read default in its code. image This will cause error: image Correct: image

image

This kind of scenario can be handled If we can configure which package should (or should not) read default.

related issues: https://github.com/originjs/vite-plugins/issues/22

aztack avatar Dec 05 '22 03:12 aztack