question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why is the prelude obfuscated in Browserify output?

See original GitHub issue

Browserify 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:closed
  • Created 10 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
henrypennycommented, May 8, 2016

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.

1reaction
deostrollcommented, Dec 10, 2015

Any way to unminify the prelude part?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found