intro.js
                                
                                
                                
                                    intro.js copied to clipboard
                            
                            
                            
                        npm package has source files minified
Description
It appears that all source files are minified. I'm not a packaging expert, however looking at a few other packages installed in my node_module/ folder, and most have the source in src/ as not minified, and the source in dist/ as minified.
Expected Behavior
I don't expect all .js to be minified, specially when it comes to debugging and trying to figure things myself, out prior to raising issues. I'm currently experiencing a problem where .removeHints() doesn't remove anything.. and I have no avenue to trying to understand whether anything I've done is impacting this.
Actual Behavior
When debugging, if you're stepping into any intro.js functions, it's essentially impossible to figure out what's happening.
Errors and Screenshots (optional)
Not Applicable. Well.. I've included one for your viewing pleasure!

Clearly -- I cannot step into intro.js:

Comparatively -- I can step into Angular' HttpClient class with no trouble

Example (recommended)
cat node_modules/intro.js/intro.js```
## Environment (optional)
"intro.js": "^5.1.0"
                                    
                                    
                                    
                                
btw -- I was able to prettyprint (using, eg. beautifier.io) and manually save the file, but this goes beyond good practices for npm packages... and minified also means function names are changed, so this is pretty cryptic to debug with..
Hitting the same issue. As a workaround, I commended out these lines:
https://github.com/usablica/intro.js/blob/55bac403388c5ee00d6c0139386d1687d9063877/rollup.config.js#L40
https://github.com/usablica/intro.js/blob/55bac403388c5ee00d6c0139386d1687d9063877/rollup.config.js#L46
and added minimize: false to the postcss of the non-minimized ones in the same file.
Then I built and copied the non-minimized ones.
This isn't a full fix as it breaks the minimized versions.
Is it possible to use the sourcemaps? Intro.js provides sourcemaps for all minified files.
I had exactly the same question in my mind when I installed the npm package. The main folder as well as the 'minified' folder within both contain minified identical files (why?), making the minified folder and its contents completely obsolete. To debug the npm package you basically have to clone the repo.
@sammuell The reason we have the same file in the minified folder is for backward compatibility. We should at some point remove that folder though. Were you able to use the sourcemaps provided in the package?
Were you able to use the sourcemaps provided in the package?
No, I ended up cloning the repo locally instead of using the npm package.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@afshinm can you confirm files are no longer minified? All I see here is a discussion of workarounds and alternatives, not addressing the root problem where good practices suggestthatminified JavaScript shouldn't be found in a file that is not named .min
Feel free to close but I don't have any evidence this was addressed.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@afshinm can you confirm files are no longer minified? All I see here is a discussion of workarounds and alternatives, not addressing the root problem where good practices suggestthatminified JavaScript shouldn't be found in a file that is not named .min
Feel free to close but I don't have any evidence this was addressed.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.