Why is the prelude obfuscated in Browserify output?
See original GitHub issueBrowserify output starts with this:
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==
"function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new
Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(
f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}
return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<
r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';
Since the inlined modules themselves are unminified, I still need to run the whole bundle through a minifier for production anyway.
So… why obfuscate the prelude like this? Why not print it out with proper formatting and variable names, so curious devs can better understand how a Browserify bundle works?
Issue Analytics
- State:
- Created 10 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Is there a way to obfuscate module names in bundle? #941
Hey folks, is there a way to automatically obfuscate the string names of required modules in the browserified bundle?
Read more >Automated Malware Analysis Report for StorageExplorer.exe
Spearphishing Link, Command-Line Interface, Shortcut Modification, File System Permissions Weakness, Obfuscated Files or Information2, Account Manipulation ...
Read more >node.js - Browserify - How to call function bundled in a file ...
The key part of bundling standalone modules with Browserify is the --s option. ... Both the browser and the command line show the...
Read more >Interactive Smooth CoffeeScript - GitHub Pages
Enter that in the console, and the same thing is printed in the output window. ... prelude , you can explore the environment...
Read more >Software Packages in "buster", Subsection javascript
... (6.26.0+dfsg-3): Strip flow type annotations from your output code ... node-browserify-lite (0.5.0-7): bundle client-side JavaScript using Node.js-style ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It would be helpful to be able to use an unminified standard prelude whilst debugging errors in one’s configuration. It would be a lot easier to simply switch of the minification of the prelude off rather than create a new unminified version. Especially for browserify noobs like me.
Any way to unminify the prelude part?