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

Partial reconstruction #35

Open
mysticaltech opened this issue Apr 23, 2020 · 2 comments
Open

Partial reconstruction #35

mysticaltech opened this issue Apr 23, 2020 · 2 comments

Comments

@mysticaltech
Copy link

Hello, this is a feature request. With Webpack, it is possible to generate bundled js files along with their sourcemaps without including the original source in the sourcemaps. But the mappings are still present, would it be possible to support a partial, best-effort reconstruction, to make the file more readable and beautified?

What bothers me when reading simple beautified files is the following syntax:

23487: function name {
...
}

I hope I have been clear enough... Any advice would be greatly appreciated!

@mysticaltech
Copy link
Author

In case you are wondering, the source links in the form "webpack://" return 404s. Logic tells me that most of this code can be reconstructed from npmjs.com, and those that are not available publicly, we can use the compressed code "beautified". That would be awesome best effort reconstruction, especially if it can work with the newly supported --preserve option. What do you think?

@Strajk
Copy link

Strajk commented Nov 30, 2022

@mysticaltech hey, i'm investigating the same challenge, did you find a solution by any chance?

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