There is no magic.
You can add
/* jscpd:ignore-start */ import .... /* jscpd:ignore-end */
Take a look here : https://github.com/kucherenko/jscpd/issues/341#issuecomment-2016830988