Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In v4 API is not working completely because everything is bundled in one file #666

Open
ViktorSoroka07 opened this issue Jul 14, 2024 · 1 comment

Comments

@ViktorSoroka07
Copy link

ViktorSoroka07 commented Jul 14, 2024

So the moment the jscpd is imported, the bin IIFE is executed which is not desired. The latest v3 does not have such a problem. I'm using it for now.

To Reproduce
Call API using the guide https://github.com/kucherenko/jscpd?tab=readme-ov-file#programming-api. Make sure to not use .jscpd.json. In my case, I wanted to configure everything inside either detectClones or jscpd function.

Expected behavior
It works

Screenshots

v3 bundle output
Screenshot 2024-07-15 at 01 29 29

v4 bundle output
Screenshot 2024-07-15 at 01 31 49

Desktop (please complete the following information):

  • OS: MacOS Sonoma
  • OS Version 14.5
  • NodeJS Version v18.20.1
  • jscpd version 4.0.5
@ViktorSoroka07 ViktorSoroka07 changed the title In v4 API is not working compoletely because the everything is bundled in one file In v4 API is not working compoletely because everything is bundled in one file Jul 15, 2024
@kucherenko
Copy link
Owner

thank you, will fix

@ViktorSoroka07 ViktorSoroka07 changed the title In v4 API is not working compoletely because everything is bundled in one file In v4 API is not working completely because everything is bundled in one file Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants